[sage-support] Re: Sage MATLAB interface in Snow Leopard
On Thu, Sep 3, 2009 at 7:16 PM, jjh wrote: > > > > On Sep 4, 12:12 pm, jjh wrote: >> What is the best way to fix this (and submit a patch). Is it just that >> once a version of Sage is compiled for 10.6 the libraries will no >> longer conflict and the problem will go away? Or should I change >> matlab.py to call sage-native-execute before matlab? Or should I >> change expect.py or pexect.py to always shed the DYLD_LIBRARY_PATH >> environment variables? Or something else? > > It looks like Octave has a similar issue. Should the change be made in > Expect to run all external commands with sage-native-wrapper or will > that break other things? > http://trac.sagemath.org/sage_trac/ticket/5858 That will definitely break things. But you should definitely run all *external* commands to packages external to sage through sage-native-execute. In particular, change MATLAB to do that and please submit a patch. Thanks!! William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage MATLAB interface in Snow Leopard
On Sep 4, 12:12 pm, jjh wrote: > What is the best way to fix this (and submit a patch). Is it just that > once a version of Sage is compiled for 10.6 the libraries will no > longer conflict and the problem will go away? Or should I change > matlab.py to call sage-native-execute before matlab? Or should I > change expect.py or pexect.py to always shed the DYLD_LIBRARY_PATH > environment variables? Or something else? It looks like Octave has a similar issue. Should the change be made in Expect to run all external commands with sage-native-wrapper or will that break other things? http://trac.sagemath.org/sage_trac/ticket/5858 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage MATLAB interface in Snow Leopard
On Sep 3, 12:44 pm, William Stein wrote: > 2009/9/2 jjh > > On Sep 3, 2:20 am, Tim Lahey wrote: > > > On Sep 2, 2009, at 11:09 AM, jjh wrote: > > > > Hi, > > > > > I have recently upgraded to OS X 10.6. This seems to have broken the > > > > MATLAB interface. MATLAB crashes on startup when called through > > > > matlab.eval() (but runs fine if I run it directly through the > > > > Terminal). This occurs for MATLAB 2008b and 2009a. > > > > > The root cause seems to be that this line: > > > > os.execv('/Applications/MATLAB_R2009a.app/bin/matlab', ['/ > > > > Applications/ > > > > MATLAB_R2009a.app/bin/matlab', '-nodisplay']) > > > > will happily result in a running version of MATLAB when run through > > > > the OS X built-in python (which is version 2.6.1). However, when the > > > > same command is issued within Sage the resulting MATLAB process > > > > crashes on startup (I've appended the MATLAB output to the end of this > > > > message). > > > > According tohttp://snowleopard.wikidot.com/thereare some problems > > > with > > > the command line version of Matlab 2009a on Snow Leopard. I highly > > > doubt it's a > > > Sage problem. > > > As I mentioned, MATLAB 2009a (and 2008b) both work fine for me when > > run through Terminal (with or without -nodisplay) and work fine when > > run directly. They even work fine using execv from a normal Python > > shell. But execv matlab with sage crashes MATLAB on startup. It would > > be rather pointless to debate whose "problem" it is, it may well be > > MATLAB doing something wrong in the Sage case. But obviously, MATLAB > > does run on 10.6 in other cases. I would be interested to try and help > > figure out what is going on when started using execv from within Sage > > and fix/workaround it. Does anyone have any ideas what to try? > > I'm guessing environment variables / libraries are relevant. What happens > when you do: > > sage: !sage-native-execute matlab > > and > > sage: !matlab > > Thanks for looking into this and reporting this issue. > > William Thanks for that. Yes it makes more sense now. MATLAB works when run using sage-native-execute but not when using !matlab. Essentially the cause of the problem is that DYLD_LIBRARY_PATH includes /Applications/sage/local/lib when running MATLAB. Some library in this folder is obviously replacing the one MATLAB expects and causing issues - maybe it's libgcc? I'm not sure export DYLD_LIBRARY_PATH=/Applications/sage/local/lib && matlab consistently causes the crash from the command line. What is the best way to fix this (and submit a patch). Is it just that once a version of Sage is compiled for 10.6 the libraries will no longer conflict and the problem will go away? Or should I change matlab.py to call sage-native-execute before matlab? Or should I change expect.py or pexect.py to always shed the DYLD_LIBRARY_PATH environment variables? Or something else? Thanks, Jonny --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage 4.1.1 on VmWareplayer 2.5.3
2009/9/3 rps : > > VMWareplayer installed without problems on a Windows XP Pro SP3 > system. A trouble-free installation of SAGE 4.1.1 followed. Notebook > could not be started unless one was root. I could ping > 192.168.220.128. After starting notebook, I fired up FF and pointed > it a 192.168.220.128. FF came back with the message 'Unable to > connect.' The same message was received when the URL was preceded by > https. > Why am I not able to connect? At the login prompt did you type the single word "notebook"? login: notebook William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Nummerical results
I think that it would be good to include the N(expr) somewhere at the top of the tutorial. This might help others, as searching for "numerical" seems to me like a logical thing to do. Stan chuck_starchaser wrote: > All I could find by searching for "numerical" was this: > http://www.sagemath.org/doc/tutorial/tour_algebra.html#solving-equations-numerically > which doesn't answer my question. > I have a function, > f(x)=6.283185307*(1.1-cos(0.008726646*x)) > f(48.0) > > Note that I used 6.28 instead of "2*pi", and 1.1 should be > just 1.0; I was just trying to persuade Sage to give me just a number; > but NOTHING seems to work. When I hit Evaluate, it spits out, > > -6.2831853070*cos(0.41887900800) + 6.28318531328319 > > Now, I understand that some professors might want "exact" results; but > what could possibly be the use of getting an answer like this? Is > there some way to just get a simple, numerical answer? > TIA > (Sorry about my frustration showing) > > > > -- Stan Schymanski Scientist Max Planck Institute for Biogeochemistry Postfach 10 01 64 D-07701 Jena Phone: +49.3641.576264 Fax: +49.3641.577274 WWW: http://www.bgc-jena.mpg.de/~sschym Biospheric Theory and Modelling Group http://www.bgc-jena.mpg.de/bgc-theory/ _ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] sage 4.1.1 on VmWareplayer 2.5.3
VMWareplayer installed without problems on a Windows XP Pro SP3 system. A trouble-free installation of SAGE 4.1.1 followed. Notebook could not be started unless one was root. I could ping 192.168.220.128. After starting notebook, I fired up FF and pointed it a 192.168.220.128. FF came back with the message 'Unable to connect.' The same message was received when the URL was preceded by https. Why am I not able to connect? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage crash on osx 10.6
Hi, > > A student encountered an error when running sage from the command line > > on OSX 10.6. When she tries the command > > > sage: point((3,3)) > > > sage crashes and OS X gives the message, > > > /Applications/sage/local/bin/sage-sage: line 199: 5436 Abort trap > > sage-ipython "$@" -i > > > sage does not crash when creating a point, only when trying to show > > it, and only from the command line. > > This works fine for me in both 32 and 64-bit OS X 10.6. I.e., it > definitely doesn't crash for me. Crap. :-) > Does the student have fink or Darwin Ports installed? Is there a /sw > directory? Is /usr/local/ full of crud? That's my guess. No, no, not sure. I'll have to check her /usr/local, but it's a relatively new Mac and she hasn't even heard of Darwin Ports or fink. (I have, so I think I see what you're saying.) > > In Linux, this works fine, and I realize this is OSX so maybe it > > shouldn't work at all. She didn't try it before upgrading to 10.5, so > > we were wondering if > > > (1) this is expected behavior; > > (2) if not, > > (2a) does anyone else encounter this problem on OSX, or is her > > computer bonkers? > > I vote for bonkers :-) She does, too. She has had other problems with her computer since installing 10.6. (OSX claims that Lyx crashes seemingly randomly, for example, although Lyx does not in fact crash.) It isn't a big issue, so I won't worry about it unless someone else also has this problem. thanks though. john --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage crash on osx 10.6
On Sep 3, 2009, at 2:13 PM, john_perry_usm wrote: > > Hi, > > A student encountered an error when running sage from the command line > on OSX 10.6. When she tries the command > >sage: point((3,3)) > > sage crashes and OS X gives the message, > >/Applications/sage/local/bin/sage-sage: line 199: 5436 Abort trap > sage-ipython "$@" -i > > sage does not crash when creating a point, only when trying to show > it, and only from the command line. This works fine for me in both 32 and 64-bit OS X 10.6. I.e., it definitely doesn't crash for me. Does the student have fink or Darwin Ports installed? Is there a /sw directory? Is /usr/local/ full of crud? That's my guess. > > In Linux, this works fine, and I realize this is OSX so maybe it > shouldn't work at all. She didn't try it before upgrading to 10.5, so > we were wondering if > > (1) this is expected behavior; > (2) if not, > (2a) does anyone else encounter this problem on OSX, or is her > computer bonkers? I vote for bonkers :-) > (2b) is there a possible fix? that is, is there a missing program that > sage is trying to call, but failing & thus crashing, so she can fix > this by installing the program? Sage just calls OS X's "Preview", which is standard (it's part of OS X). -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] sage crash on osx 10.6
Hi, A student encountered an error when running sage from the command line on OSX 10.6. When she tries the command sage: point((3,3)) sage crashes and OS X gives the message, /Applications/sage/local/bin/sage-sage: line 199: 5436 Abort trap sage-ipython "$@" -i sage does not crash when creating a point, only when trying to show it, and only from the command line. In Linux, this works fine, and I realize this is OSX so maybe it shouldn't work at all. She didn't try it before upgrading to 10.5, so we were wondering if (1) this is expected behavior; (2) if not, (2a) does anyone else encounter this problem on OSX, or is her computer bonkers? (2b) is there a possible fix? that is, is there a missing program that sage is trying to call, but failing & thus crashing, so she can fix this by installing the program? regards john perry --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage 4.1.1 illegal instruction on ubuntu 9.04 on Pentium M processor 1.73GHz stepping 08 (Dell inspiron 6000)
thanks for your answer. In the mean time I build sage from source as per the installation instructions : slightly over 3 hours on my hardware. It seems to work ok : now I'll just need to learn to use it :o) . Kind regards, Frederic On Sep 3, 4:39 pm, William Stein wrote: > On Thu, Sep 3, 2009 at 7:26 AM, Frederic > wrote: > > > > > > > Hi, > > > I've been trying without results to run sage 4.1.1 on my Dell inspiron > > 6000 laptop running Ubuntu 9.04. > > > I tried both the pre-compiled file tar download files for Ubuntu as > > well as for Debian lenny; both return with > > > frede...@insp6000:~/sage-4.1.1$ ./sage > > -- > > | Sage Version 4.1.1, Release Date: 2009-08-14 | > > | Type notebook() for the GUI, and license() for information. | > > -- > > The Sage install tree may have moved. > > Regenerating Python.pyo and .pyc files that hardcode the install PATH > > (please wait at most a few minutes)... > > Do not interrupt this. > > /home/frederic/sage-4.1.1: line 199: 31759 Illegal instruction > > sage-ipython "$@" -i > > > My CPU is as can be found from the dmesg is > > CPU0: Intel(R) Pentium(R) M processor 1.73GHz stepping 08 > > I've update the relevant FAQ entry about this: > > http://wiki.sagemath.org/faq#Otherquestions > > I really wish somebody would fix this problem, since we get a question about > it almost every day. It's difficult since few people have access to a wide > enough range of hardware... I'll surely look into this next month though. > > William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: plotting and float
On Sep 3, 3:38 pm, William Cauchois wrote: > By the way, you can make your original example work by using a lambda > instead of a symbolic expression: > > sage: plot3d(lambda x, y: abs(e^(pi*i*x)+e^(pi*i*y)), (0,1), (0,1)) Oh, yes, I know. And I try to avoid using lambda notation whenever possible, because I don't fully understand it even when I do use it, and my students certainly don't. Hence this post. Again, my point was that I inputted a real-valued function to plot3d, and a complex-valued one to complex_plot, and both died. But I don't know how to fix it, unless the code for fast_callable is easier to work with than I think. Sorry it seems there is no easy fix for this. - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: plotting and float
By the way, you can make your original example work by using a lambda instead of a symbolic expression: sage: plot3d(lambda x, y: abs(e^(pi*i*x)+e^(pi*i*y)), (0,1), (0,1)) Should work. (Although I'm getting the error "plot variables should be distinct", which I think is a bug; workaround is to change one of the lower bounds to 0.1 instead of 0.) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Completing the square
Here is the finished product for CS. -- def CSquare(co1,co2,co3): eq1=co1*x^2+co2*x+co3 eq3=eq1==0 eq2=factor(eq1) eq4=(1/co1)*eq2 eq10=expand(eq4) M1=maxima.args(eq10);L1=len(M1) Cof1=maxima.args(eq10);Cof1a=Cof1[2]; val2=((1/2)*(maxima.coeff(eq10,x,1))) Addon=maxima.ev(val2^2) eq5=maxima.ev(val2^2)+M1[0]+M1[1]#this gets value from Maxima eq6=factor(eq5); eq7=-M1[2]+Addon; Str1="This is added to both sides of the quad-- " Soln=maxima.solve(eq1) return eq3,eq2,eq10,eq6,Str1,eq7,Soln --- The line that solve the problem was Addon=maxima.ev(val2^2) I now get a real number, that finishes the CS. Willian, I need Maxima to write this function. Here is some output. - the call ---val1=CSquare(2,-1,-2);val1[0];val1[1];val1[2];val1[3];val1 [4],val1[5];val1[6] 2*x^2 - x - 2 == 0 2*(x^2 - x/2 - 1) x^2 - x/2 - 1 (4*x-1)^2/16 ('This is added to both sides of the quad-- ', 17/16) [x=-(sqrt(17)-1)/4,x=(sqrt(17)+1)/4] - the call--val1=CSquare(2,-1,-3);val1[0];val1[1];val1[2];val1[3];val1 [4],val1[5];val1[6] 2*x^2 - x - 3 == 0 2*(x - 3/2)*(x + 1) x^2 - x/2 - 3/2 (4*x-1)^2/16 ('This is added to both sides of the quad-- ', 25/16) [x=3/2,x=-1] --- Now to get it work on my server. When I finish I will give the link. Current version at http://pirsqrt.com:1843/ Wolfram Alpha eat your hart out. Still looking for help with pretty print output. (JSmath) On Sep 2, 6:51 pm, Robert Bradshaw wrote: > On Wed, 2 Sep 2009, calcp...@aol.com wrote: > > That's a good question! I've written functions in MATLAB (well Octave > > actually) no problem. But I get confused where Python leaves off and Sage > > kicks in when witting functions here. > > The way to think about this is that Sage is just a huge Python library, > and writing a function in Sage (in the programming sense, not the > mathematical sense) is exactly the same as writing a function in Python. > > From the command line/notebook, there is some preparsing that goes on, but > it's stuff like 5 -> Integer(5) so that 1/5 doesn't become 0. > > > > > Could someone please give me a barebones example, soup to nuts, of a > > Python vs. Sage vs. Other (Maxima and such) function that does, say, > > Newton's > > Method for finding Roots? > > > 1) what does the function look like > > 2) how do you invoke it > > 3) what's the input > > 3) where's the output > > 4) etc > > > TIA, > > A. Jorge Garcia > > _http://calcpage.tripod.com_(http://calcpage.tripod.com/) > > > Teacher & Professor > > Applied Mathematics, Physics & Computer Science > > Baldwin Senior High School & Nassau Community College > > > In a message dated 9/2/2009 5:57:37 P.M. Eastern Daylight Time, > > thephantom6...@hotmail.com writes: > > > No. The call is CSquare(2,3,4). Just trying to setup a random quad. > > Could this function be done with just Sage? I need coeficients, each > > term, sides of the equation, etc.- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Nummerical results
Thanks! I just discovered another way by experimenting: float( f(48.0) ) seems to work. I'll give N a try; thanks again. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Nummerical results
On Sep 3, 2009, at 11:53 AM, chuck_starchaser wrote: > > All I could find by searching for "numerical" was this: > http://www.sagemath.org/doc/tutorial/tour_algebra.html#solving-equations-numerically > which doesn't answer my question. > I have a function, > f(x)=6.283185307*(1.1-cos(0.008726646*x)) > f(48.0) > > Note that I used 6.28 instead of "2*pi", and 1.1 should be > just 1.0; I was just trying to persuade Sage to give me just a number; > but NOTHING seems to work. When I hit Evaluate, it spits out, > > -6.2831853070*cos(0.41887900800) + 6.28318531328319 > > Now, I understand that some professors might want "exact" results; but > what could possibly be the use of getting an answer like this? Is > there some way to just get a simple, numerical answer? > TIA > (Sorry about my frustration showing) If expr is any constant symbolic expression you can use sage: N(expr) to get a numerical approximation to it, to 53 bits precision. Type N? for more help, including how to get higher precision out, etc. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Nummerical results
All I could find by searching for "numerical" was this: http://www.sagemath.org/doc/tutorial/tour_algebra.html#solving-equations-numerically which doesn't answer my question. I have a function, f(x)=6.283185307*(1.1-cos(0.008726646*x)) f(48.0) Note that I used 6.28 instead of "2*pi", and 1.1 should be just 1.0; I was just trying to persuade Sage to give me just a number; but NOTHING seems to work. When I hit Evaluate, it spits out, -6.2831853070*cos(0.41887900800) + 6.28318531328319 Now, I understand that some professors might want "exact" results; but what could possibly be the use of getting an answer like this? Is there some way to just get a simple, numerical answer? TIA (Sorry about my frustration showing) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Firstly, Sage-math 4.1.1 does not work properly and notebook either.
On Sep 3, 2009, at 11:27 AM, pentti wrote: > > Hi, > > I have logged in and given password and then I gave notebook. > Don't do that. Just type "notebook" at the login prompt. Do *not* login and give the password. William > With thanks > > Pentti > > On 3 syys, 19:09, William Stein wrote: >> On Thu, Sep 3, 2009 at 8:48 AM, pentti >> wrote: >> >>> Hi, >> >>> My computer is Intel Core 2 Quad CPU Q9550 2.83 GHz and OS is >>> Microsoft Windows Xp Professional version 2002 service pack 3. I >>> downloaded VMware player 2.5.3 through sage-math pages. I also >>> downloaded sage-vmware-4.1.1 from sage-math pages. >> >>> Now when I goto sage through fast link sage_vmx , and write notebook >>> there is this error >> >> Do you type "notebook" at the login: prompt? >> >> William >> >> >> >>> " Open Firefox to the addresshttp://192.168.23.128 >>> It may take up to about 10 seconds for the server to start. >>> Press refresh on our web browser. >>> (click here and press control-C to stop the notebook server) >> >>> sh: cannot create notebook.log: Permission denied >>> echo: write error : Broken pipe >>> lo...@sage:~$ _ " >> >>> When I try command sage then happens following >>> when I press keyboard plus it writes on the console minus >>> so keyboard is not working properly. >> >>> Help is appreciated >> >>> With thanks >> >>> Pentti >> >> -- >> William Stein >> Associate Professor of Mathematics >> University of Washingtonhttp://wstein.org > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Firstly, Sage-math 4.1.1 does not work properly and notebook either.
Hi, I have logged in and given password and then I gave notebook. With thanks Pentti On 3 syys, 19:09, William Stein wrote: > On Thu, Sep 3, 2009 at 8:48 AM, pentti wrote: > > > Hi, > > > My computer is Intel Core 2 Quad CPU Q9550 2.83 GHz and OS is > > Microsoft Windows Xp Professional version 2002 service pack 3. I > > downloaded VMware player 2.5.3 through sage-math pages. I also > > downloaded sage-vmware-4.1.1 from sage-math pages. > > > Now when I goto sage through fast link sage_vmx , and write notebook > > there is this error > > Do you type "notebook" at the login: prompt? > > William > > > > > " Open Firefox to the addresshttp://192.168.23.128 > > It may take up to about 10 seconds for the server to start. > > Press refresh on our web browser. > > (click here and press control-C to stop the notebook server) > > > sh: cannot create notebook.log: Permission denied > > echo: write error : Broken pipe > > lo...@sage:~$ _ " > > > When I try command sage then happens following > > when I press keyboard plus it writes on the console minus > > so keyboard is not working properly. > > > Help is appreciated > > > With thanks > > > Pentti > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Firstly, Sage-math 4.1.1 does not work properly and notebook either.
On Thu, Sep 3, 2009 at 8:48 AM, pentti wrote: > > Hi, > > My computer is Intel Core 2 Quad CPU Q9550 2.83 GHz and OS is > Microsoft Windows Xp Professional version 2002 service pack 3. I > downloaded VMware player 2.5.3 through sage-math pages. I also > downloaded sage-vmware-4.1.1 from sage-math pages. > > Now when I goto sage through fast link sage_vmx , and write notebook > there is this error > Do you type "notebook" at the login: prompt? William > " Open Firefox to the address http://192.168.23.128 > It may take up to about 10 seconds for the server to start. > Press refresh on our web browser. > (click here and press control-C to stop the notebook server) > > sh: cannot create notebook.log: Permission denied > echo: write error : Broken pipe > lo...@sage:~$ _ " > > When I try command sage then happens following > when I press keyboard plus it writes on the console minus > so keyboard is not working properly. > > Help is appreciated > > With thanks > > Pentti > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Firstly, Sage-math 4.1.1 does not work properly and notebook either.
Hi, My computer is Intel Core 2 Quad CPU Q9550 2.83 GHz and OS is Microsoft Windows Xp Professional version 2002 service pack 3. I downloaded VMware player 2.5.3 through sage-math pages. I also downloaded sage-vmware-4.1.1 from sage-math pages. Now when I goto sage through fast link sage_vmx , and write notebook there is this error " Open Firefox to the address http://192.168.23.128 It may take up to about 10 seconds for the server to start. Press refresh on our web browser. (click here and press control-C to stop the notebook server) sh: cannot create notebook.log: Permission denied echo: write error : Broken pipe lo...@sage:~$ _ " When I try command sage then happens following when I press keyboard plus it writes on the console minus so keyboard is not working properly. Help is appreciated With thanks Pentti --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage 4.1.1 illegal instruction on ubuntu 9.04 on Pentium M processor 1.73GHz stepping 08 (Dell inspiron 6000)
On Thu, Sep 3, 2009 at 7:26 AM, Frederic wrote: > > Hi, > > I've been trying without results to run sage 4.1.1 on my Dell inspiron > 6000 laptop running Ubuntu 9.04. > > I tried both the pre-compiled file tar download files for Ubuntu as > well as for Debian lenny; both return with > > frede...@insp6000:~/sage-4.1.1$ ./sage > -- > | Sage Version 4.1.1, Release Date: 2009-08-14 | > | Type notebook() for the GUI, and license() for information.| > -- > The Sage install tree may have moved. > Regenerating Python.pyo and .pyc files that hardcode the install PATH > (please wait at most a few minutes)... > Do not interrupt this. > /home/frederic/sage-4.1.1: line 199: 31759 Illegal instruction > sage-ipython "$@" -i > > My CPU is as can be found from the dmesg is > CPU0: Intel(R) Pentium(R) M processor 1.73GHz stepping 08 > > I've update the relevant FAQ entry about this: http://wiki.sagemath.org/faq#Otherquestions I really wish somebody would fix this problem, since we get a question about it almost every day. It's difficult since few people have access to a wide enough range of hardware... I'll surely look into this next month though. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Maxima Solve sys
JSmath is basically a bunch of javacript routines that takes latex created from sage and displays in the html file. The html is generated in my Python script(server,html). When I call JSmath the first routine is loaded. In the first script it calls another and this is where the problem occurs. One of the problems is that I am calling the JSmath from a server. It is a path problem. I can insert images in the html file. On Sep 2, 11:10 am, Robert Bradshaw wrote: > On Wed, 2 Sep 2009, Mikie wrote: > > > Didn't you create the API using the notebook? > > Yes, I created the simple server, but you can think of that more as > reaching under the html/javascript/jsmath layer and exposing the raw > computatinal elements themsleves, rather than building on top of that nice > GUI. > > - Robert > > > > > > > On Sep 1, 10:02 pm, Robert Bradshaw > > wrote: > >> On Sep 1, 2009, at 12:16 PM, Mikie wrote: > > >>> I took out the eval and for some reason it is working. > >>> Robert, this is function in my API (AlgCalc) > >>>http://pirsqrt.com:1843/ > >>> If I would give it to you would you show me how to get JSmath to > >>> work? I have talked to you before. You said you were too busy. I > >>> have loaded load.js, but when it goes for another .js file it cannot > >>> find. > > >> You're probably thinking about another Robert--I don't know anything > >> about jsmath. What I would do is look for instructions on their site. > > >> - Robert (Bradshaw) > > >>> On Sep 1, 12:37 pm, Mikie wrote: > Yes, Robert eval is doing the rounding. How do I fix it? > > On Sep 1, 12:31 pm, Mikie wrote: > > > I have tried SR. I get a malformed value. Yes, I understand the > > problem with eval. Do you have any suggestions on how to get the > > right value into maxima.solve? > > > On Sep 1, 11:32 am, Robert Bradshaw > > wrote: > > >> On Tue, 1 Sep 2009, Mikie wrote: > > >>> When I run the server with the function above and the following > >>> string > >>> from a text box I get > >>> [y=-1,x=0]. The string is "[3*x-y-1,x+(1/3)*y]" > > >>> It is changing the input value to [3*x-y-1,x] > > >> 1/3 = 0 in Python. Also, I hope you realize how dangerous > > >> eval("random string someone gave you from the web") is! > > >> - Robert > > >>> On Sep 1, 10:38 am, Mikie wrote: > Sorry, wrong function > > def MSolveSys(syss): > eqns=eval(syss) > solns=maxima.solve(eqns) > return solns > > On Sep 1, 10:31 am, Jason Grout > wrote: > > > Robert Bradshaw wrote: > >> On Sep 1, 2009, at 9:17 AM, Mikie wrote: > > >>> Here is function I am using to solve systems of linear > >>> equations. > > >>> def MSolveSys(syss): > >>> eqns=eval(syss) > >>> solns=maxima.solve(syss) > >>> return solns > > >>> Works great in the notebook, but when I put it in a Python > >>> script it > >>> rounds the coeficients of the variables and thus produces bad > >>> solutions. > > >> Perhaps eval here is the culprit. You might have to parse it > >> a bit > >> yourself. SR("...") will parse expressions. > > > Mikie effectively isn't using "eval", right? That line (and > > the "eqns" > > variable) is not being used. > > > Jason > > > -- > > Jason Grout- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -- Hide quoted text - > > >> - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -- Hide quoted text - > > >> - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage 4.1.1 + sage-mode 0.6 = broken sage-view
hi nick, I've installed CarbonEmacs, the same thing happens. Then i've reduced my .emacs to just (add-to-list 'load-path (expand-file-name "/Applications/sage/data/ emacs")) (require 'sage "sage") (setq sage-command "/Applications/sage/sage") (require 'sage-view "sage-view") (add-hook 'sage-startup-hook 'sage-view) same problem. What else could I try to see where the issue comes from ? pierre On 2 sep, 18:21, Nick Alexander wrote: > On Sep 2, 8:52 am, Pierre wrote: > > > hi, > > > I've built sage 4.1.1 on OS X, and i've had to re-install sage-mode, > > the new one being 0.6. I've got an issue with sage-view, in that it > > doesn't start automatically anymore (i have to go M-x sage-view). And > > yes, i put > > > (add-hook 'sage-startup-hook 'sage-view) > > > in my .emacs. Btw in the past i had tried to rely on the hook in order > > to disable-inline-plots, wasn't working either. I guess my hook is > > fd, somehow. But at the time at least sage-view started > > automatically. > > Hmm, I will take a look at this. > > > And also : is it normal that the install instructions for sage-mode > > have chanded with this version ? no more (require 'pyrex "pyrex-mode") > > and the like ? > > I think this is correct. I folded the autoloading and require emacs > stuff for pyrex-mode into the sage-mode require stuff. > > > PS i'm on aquamacs. > > Okay, I don't use Aquamacs, I use Zenitani's marvelous distribution, > so our mileage might vary. > > Nick --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Sage 4.1.1 illegal instruction on ubuntu 9.04 on Pentium M processor 1.73GHz stepping 08 (Dell inspiron 6000)
Hi, I've been trying without results to run sage 4.1.1 on my Dell inspiron 6000 laptop running Ubuntu 9.04. I tried both the pre-compiled file tar download files for Ubuntu as well as for Debian lenny; both return with frede...@insp6000:~/sage-4.1.1$ ./sage -- | Sage Version 4.1.1, Release Date: 2009-08-14 | | Type notebook() for the GUI, and license() for information.| -- The Sage install tree may have moved. Regenerating Python.pyo and .pyc files that hardcode the install PATH (please wait at most a few minutes)... Do not interrupt this. /home/frederic/sage-4.1.1: line 199: 31759 Illegal instruction sage-ipython "$@" -i My CPU is as can be found from the dmesg is CPU0: Intel(R) Pentium(R) M processor 1.73GHz stepping 08 Would appreciate your help. Thanks. Kind regards --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Can I define the derivative of un unkown function
I am trying to do the following thing but I am not sure whether this is possible in sage (though I think it is in Mathematica) Let's say I define a symbolic function sage: f=function('f',x) I would like to issue some command to "tell" sage what the derivative of f is (for instance : g) so that the command sage: diff(f) would yield g The purpose of this is to use this unknown function in a more complex derivation scheme. Any idea out there ? Thanks for reading --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---