[sage-support] Re: Sage Crash Report - Sagecell2 in sage-5.4.rc1

2012-11-03 Thread Jason Grout
On 11/2/12 6:26 PM, Brandon Curtis wrote: Whether I use plot(y,x,-2,2), plot(y,(x,-2,2)), plot(y,x,(-2,2)), plot(y,(-2,2)), or plot(y,-2,2), the Notebook happily produces the same plot and the Cell Server unhappily throws errors. Okay. I can't reproduce the error (yet) with my config.

[sage-support] Evaluating a symbolic expression

2012-11-03 Thread Jotace
Hi all, I want to find the max/min of a function f =f(x,y,z) of three variables under two constraints g_1 = 0, g_2=0 using Lagrange multipliers. I am able to build and solve the system, even to form the list of values fox the critical points, say P1=[1,2,3], but then I am not able to cmpute

Re: [sage-support] Evaluating a symbolic expression

2012-11-03 Thread D. S. McNeil
I mean, I can of course do f(P1[0],P1[1],P1[2]), but this is highly non-elegant. You can use an asterisk: sage: f(x,y,z) = x+10*y+100*z sage: P1 = [2,3,4] sage: f(*P1) 432 Here, * behaves kind of like a dereferencing operator: f(*(x,y,z)) == f(x,y,z). See this StackOverflow question for a

Re: [sage-support] Re: Sage Crash Report - Sagecell2 in sage-5.4.rc1

2012-11-03 Thread Brandon Curtis
On Sat, Nov 3, 2012 at 4:09 PM, Jason Grout jason-s...@creativetrax.comwrote: On 11/3/12 5:06 PM, Brandon Curtis wrote: The proper thing to do is to make a fork on github, push your changes there, and submit a pull request [1]. I'll probably start compiling rc3 and test your changes

Re: [sage-support] Re: Unable to run Macaulay2 through SAGE

2012-11-03 Thread Justin C. Walker
On Nov 3, 2012, at 19:24 , Peter Horn wrote: And the plot thickens. I found all files called macaulay2.py in the application Sage-5.3-OSX-64bit-10.6.app and removed the -e from line 180. If you remove the -e (see my comment earlier in the thread) you may need to remove the stuff that