[sage-support] Re: Issues of Sage 6.9 for Mac OS X 10.10
Hi, this is a typical error caused by an attempt to use an executable for a higher end CPU. What is the CPU of your computer? I guess we need a build for Core2 Duo... Cheers, Dima On Saturday, 7 November 2015 07:47:23 UTC, Yoshihiro Sato wrote: > > I tried to install Sage 6.9 for Mac OS X 10.10. However it does not > work.The log is as follows. > I hope it will be updated. > Thanks, > Y.Sato > > $ sage > ┌┐ > │ SageMath Version 6.9, Release Date: 2015-10-10 │ > │ Type "notebook()" for the browser-based notebook interface.│ > │ Type "help()" for help.│ > └┘ > The Sage installation tree has moved > from /Users/buildslave-sage/slave/sage_git/build > to /Applications/Sage-6.9.app/Contents/Resources/sage > Updating various hardcoded paths... > (Please wait at most a few minutes.) > DO NOT INTERRUPT THIS. > Done updating paths. > > Unhandled SIGILL: An illegal instruction occurred in Sage. > This probably occurred because a *compiled* component of Sage has a bug > in it and is not properly wrapped with sig_on(), sig_off(). > Sage will now terminate. > > /usr/local/bin/sage: line 2: 3829 Illegal instruction: 4 $SAGE_ROOT/sage > $@ > $ > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: Octave and R plots in sagecell
On Sat, Nov 7, 2015 at 4:22 PM, Nils Bruinwrote: > On Friday, November 6, 2015 at 2:59:56 PM UTC-8, Andrey Novoseltsev wrote: >> >> My understanding is that (unlike for R) we do not try to do anything for >> Octave plotting, so everything is "default". Plotting commands in Octave use >> either gnuplot or OpenGL, but it seems that in our setup only gnuplot is >> available. How extractly it is used I don't know, but my guess is that >> Octave creates some input file and then passes it to "gnuplot" and you have >> an option to change the name of the called binary and supply some options to >> it. For whatever reason, default options result in just ASCII plot in >> SageMathCell and SageNB. When I try to add explicit commands for saving in a >> particular format I am just getting the same ASCII plot one more time and >> some warnings. Starting Octave from a local terminal allows me to open plots >> in a new window, while saving files works but still shows warning about >> missing things. It would be nice if someone who knows Octave and gnuplot >> figured out what do we need to do to get some plots and no warnings - I am >> stopping for now. >> > I don't know either very much, but I have succeeded on my local octave (on > Fedora) to produce some plots in files via essentially this code: > > https://sagecell.sagemath.org/?z=eJxLy0wvLUrVMNRRKssszkzKSVXSUcpPS1PS5OUqLi1K0yhITcwuBnESy1ITi0HqwCJ6BXnpIDUAiBwTdA===octave > > figure(1,"visible","off") > surf(peaks) > saveas(1,"peaks.png") > > (saving to peak.pdf works too). > > I did install "transfig" (a part of xfig), as well as "pstoedit". > > Turning the "visible" off ensures that you don't get the silly ascii art. > > Other remarks: > > I do need to run octave with "DISPLAY" unset. Otherwise it seems to want to > use the graphics windows things, and from there any attempt to saving the > graphics leads to a segfault [which has significantly diminished my trust in > octave, or at least its fedora packaging]. Even with "visible" off, I wasn't > getting saved graphics (but no segfaults either). > > It would be great if we could get basic octave graphics support running on > sagecell. I think plenty of matlab-centric courses could make excellent use > of it. A basic test case -- which fails horribly in SageMathCloud (in both worksheets *and* the command line) : sage: octave.eval("x = -10:0.1:10;\nplot (x, sin (x));") So thanks for posting your suggestions, which help a lot. SMC Ticket: https://github.com/sagemathinc/smc/issues/238 William > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. -- William (http://wstein.org) -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: How to save the output of view locally (and not open the output)?
On Saturday, November 7, 2015 at 1:34:49 PM UTC-8, slabbe wrote: > > This opens a pdf: > > sage: g = graphs.PetersenGraph() > sage: s = latex(g) > sage: view(s, tightpage=True) > > But is there a way to just save that pdf file locally and not open it? > Until you quite the Sage session, the file should be saved some place like .sage/temp/HOSTNAME/9348/sage.pdf (9348 is some random number). So if you don't mind having it open, it is available. I thought there was another way to do this, but I can't find a simple one. You can do: sage: from sage.misc.latex import _latex_file_ sage: t = _latex_file_(s) # the contents of the file to be run through LaTeX Or even better, mimic the effects of tightpage=True: sage: t = _latex_file_(s, extra_preamble='\\usepackage[tightpage,active]{preview}\\PreviewEnvironment{page}', math_left='\\begin{page}$', math_right='$\\end{page}') Then save to a file and run PDFLaTeX on it: sage: file = "/home/palmieri/my_file.tex" sage: O = open(file, 'w') sage: O.write(t) sage: O.close sage: from sage.misc.latex import _run_latex_ sage: _run_latex_(file) -- John -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Octave and R plots in sagecell
On Friday, November 6, 2015 at 2:59:56 PM UTC-8, Andrey Novoseltsev wrote: > > My understanding is that (unlike for R) we do not try to do anything for > Octave plotting, so everything is "default". Plotting commands in Octave > use either gnuplot or OpenGL, but it seems that in our setup only gnuplot > is available. How extractly it is used I don't know, but my guess is that > Octave creates some input file and then passes it to "gnuplot" and you have > an option to change the name of the called binary and supply some options > to it. For whatever reason, default options result in just ASCII plot in > SageMathCell and SageNB. When I try to add explicit commands for saving in > a particular format I am just getting the same ASCII plot one more time and > some warnings. Starting Octave from a local terminal allows me to open > plots in a new window, while saving files works but still shows warning > about missing things. It would be nice if someone who knows Octave and > gnuplot figured out what do we need to do to get some plots and no warnings > - I am stopping for now. > > I don't know either very much, but I have succeeded on my local octave (on Fedora) to produce some plots in files via essentially this code: https://sagecell.sagemath.org/?z=eJxLy0wvLUrVMNRRKssszkzKSVXSUcpPS1PS5OUqLi1K0yhITcwuBnESy1ITi0HqwCJ6BXnpIDUAiBwTdA===octave figure(1,"visible","off") surf(peaks) saveas(1,"peaks.png") (saving to peak.pdf works too). I did install "transfig" (a part of xfig), as well as "pstoedit". Turning the "visible" off ensures that you don't get the silly ascii art. Other remarks: I do need to run octave with "DISPLAY" unset. Otherwise it seems to want to use the graphics windows things, and from there any attempt to saving the graphics leads to a segfault [which has significantly diminished my trust in octave, or at least its fedora packaging]. Even with "visible" off, I wasn't getting saved graphics (but no segfaults either). It would be great if we could get basic octave graphics support running on sagecell. I think plenty of matlab-centric courses could make excellent use of it. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Building sage / error message
Plattform: Samsung Series 5 Notebook Operating System: Ubuntu 10.04 LTS Version of sage: SageMath Version 6.9, Release Date: 2015-10-10 GETTING STARTED --- This README.txt contains build instructions for Sage. If you downloaded a binary, you do not need to do anything; just execute: ./sage - I got the following result: Traceback (most recent call last): File "/home/rsom/sage1/sage-6.9-i686-Linux/src/bin/sage-ipython", line 8, in from sage.repl.readline_extra_commands import * ImportError: /home/rsom/sage1/sage-6.9-i686-Linux/local/lib/python2.7/site-packages/sage/repl/readline_extra_commands.so: wrong ELF class: ELFCLASS32 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] How to install Sagemath 6.9 in VMware workstation 12
Can you point me to instructions on how to install Sagemath 6.9 in VMware workstation 12 on Windows 7, 64-bit? In addition, I have the following specific questions. 1. Is the underlying OS CentOS? Is it 32-bit or 64-bit? 2. How does one reach the command prompt for installing VMware tools and deleting VirtualBox additions as described in http://trac.sagemath.org/ticket/13068? Thanks -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Builduing sage
GETTING STARTED --- This README.txt contains build instructions for Sage. If you downloaded a binary, you do not need to do anything; just execute: ./sage - I got the following result: Traceback (most recent call last): File "/home/rsom/sage1/sage-6.9-i686-Linux/src/bin/sage-ipython", line 8, in from sage.repl.readline_extra_commands import * ImportError: /home/rsom/sage1/sage-6.9-i686-Linux/local/lib/python2.7/site-packages/sage/repl/readline_extra_commands.so: wrong ELF class: ELFCLASS32 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] minimization errors with hypergeometric functions
I have some problems with minimization with multivariables AND hypergeometric functions in Sage while I'm translating my physics problem code into sage. When I try minimize(x^2+y^2,[0.1,0.1],algorithm="default") it obviously works: (0.0,0.0) The minimization for hypergeometric functions seems to work as minimize(hypergeometric([1],[1],x) + x^2, [0.1],algorithm="default") But, the next one does not work. Do you have any suggestion for an alternative way to evaluate the minimum? minimize(hypergeometric([1],[1],x) + x^2 + y^2, [0.1,0.1],algorithm="default") It shows the following error: File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 905, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/sage/numerical/optimize.py", line 327, in minimize min= optimize.fmin_bfgs(f, [float(_) for _ in x0],fprime=gradient, **args) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 777, in fmin_bfgs res = _minimize_bfgs(f, x0, args, fprime, callback=callback, **opts) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 832, in _minimize_bfgs gfk = myfprime(x0) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 281, in function_wrapper return function(*(wrapper_args + args)) File "/projects/sage/sage-6.9/local/lib/python2.7/site-packages/sage/numerical/optimize.py", line 319, in gradient=lambda p: scipy.array([ a(*p) for a in fast_gradient_functions]) File "sage/ext/interpreters/wrapper_rdf.pyx", line 80, in sage.ext.interpreters.wrapper_rdf.Wrapper_rdf.__call__ (/projects/sage/sage-6.9/src/build/cythonized/sage/ext/interpreters/wrapper_rdf.c:1746) return self._domain(interp_rdf(c_args File "sage/symbolic/expression.pyx", line 4821, in sage.symbolic.expression.Expression.__call__ (/projects/sage/sage-6.9/src/build/cythonized/sage/symbolic/expression.cpp:27873) return self._parent._call_element_(self, *args, **kwds) File "sage/symbolic/ring.pyx", line 796, in sage.symbolic.ring.SymbolicRing._call_element_ (/projects/sage/sage-6.9/src/build/cythonized/sage/symbolic/ring.cpp:9827) raise ValueError("the number of arguments must be less than or equal to %s"%len(vars)) ValueError: the number of arguments must be less than or equal to 1 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Installation using VMare Workstation on Windows 7 64-bit
Is there an guide for installing Sagemath 6.9 using VMware workstation 12 on Windows 7 64-bit? In addition, have a few questions. 1. What is the underlying OS? CentOS? 3-bit or 64-bit? 2. How to access the command prompt? Needed to remove Virtual box guest additions and to install VMware tools, as in http://trac.sagemath.org/ticket/13068 Thanks -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Cutting, merging and visualizing trees
Hi. I would like to implement an algorithm that clips (rooted, ordered) trees at certain points and then reconnect them at different points. I have done it already using python alone, but I was hoping to do it in Sage to make the visualization and debugging easier. Perhaps I should even redo the whole thing using Sage tools from the beginning to avoid reinventing the wheel going forward :) Could anyone please point me to the most appropriate tools? Thanks! -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Installation using VMare Workstation on Windows 7 64-bit
On Sat, 7 Nov 2015, anga wrote: Is there an guide for installing Sagemath 6.9 using VMware workstation 12 on Windows 7 64-bit? Did you try? .ova -file should work with VMware products; it is not a VirtualBox specific but a common format to export virtual machines. See https://en.wikipedia.org/wiki/Open_Virtualization_Format . 2. How to access the command prompt? See http://wiki.sagemath.org/SageAppliance#Using_the_Sage_shell . You need to know what is your "host key" on virtual machine manager. -- Jori Mäntysalo
[sage-support] Re: minimization errors with hypergeometric functions
On Saturday, November 7, 2015 at 7:27:45 PM UTC-8, Yukikaze Yuto wrote: > > But, the next one does not work. Do you have any suggestion for an > alternative way to evaluate the minimum? > > minimize(hypergeometric([1],[1],x) + x^2 + y^2, > [0.1,0.1],algorithm="default") > > It shows the following error: > ValueError: the number of arguments must be less than or equal to 1 > The error seems to indicate something goes wrong with how the multidimensional input gets passed around. It would be good if that got checked out. As a workaround, perhaps use this: minimize(lambda (x,y):hypergeometric([1],[1],x) + y^2, [0.1,0.1],algorithm="default") -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: Builduing sage
You downloaded the 32-bit binary, but your os is 64-bit. On Saturday, November 7, 2015 at 7:27:37 PM UTC-8, beta333 wrote: > > GETTING STARTED > --- > > This README.txt contains build instructions for Sage. If you downloaded > a binary, you do not need to do anything; just execute: > > ./sage > > - > I got the following result: > > Traceback (most recent call last): > File "/home/rsom/sage1/sage-6.9-i686-Linux/src/bin/sage-ipython", line > 8, in > from sage.repl.readline_extra_commands import * > ImportError: > /home/rsom/sage1/sage-6.9-i686-Linux/local/lib/python2.7/site-packages/sage/repl/readline_extra_commands.so: > > wrong ELF class: ELFCLASS32 > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] "Factoring" cartesian product of posets
Can Sage "factor" a poset, i.e. given poset P compute P1 and P2 such that P is isomorphic to P1.product(P2)? There is a module for that on undirected graphs: http://doc.sagemath.org/html/en/reference/graphs/sage/graphs/graph_decompositions/graph_products.html . However, how to differentiate situations where P1 might be Poset({0:[1, 2]}) or Poset({0: [1], 1: [2]})? They have isomorphic cover relations graph. -- Jori Mäntysalo
[sage-support] Re: Cutting, merging and visualizing trees
Hello Rodrigo, Sage has a Graph class that might help you in what you plan, but from your message I was not able to guess if you needed 'more' than just a graph class. Turns out that we are many here to deal with graph/trees, but we do so in different ways. My trees are not rooted and not ordered, while combinatorialists here may have something closer to what you need. Have you taken a look at those pages? http://doc.sagemath.org/html/en/reference/combinat/sage/combinat/enumerated_sets.html#trees http://doc.sagemath.org/html/en/reference/graphs/index.html#sage-graphs Maybe they will tell you where exactly yuo need to look in order to translate your code into Sage code. Have fuun, Nathann On Sunday, November 8, 2015 at 4:27:46 AM UTC+1, Rodrigo wrote: > > Hi. I would like to implement an algorithm that clips (rooted, ordered) > trees at certain points and then reconnect them at different points. I have > done it already using python alone, but I was hoping to do it in Sage to > make the visualization and debugging easier. Perhaps I should even redo the > whole thing using Sage tools from the beginning to avoid reinventing the > wheel going forward :) Could anyone please point me to the most appropriate > tools? Thanks! > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.