[sage-support] Re: Sage MATLAB interface in Snow Leopard

2009-09-02 Thread William Stein
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

[sage-support] Re: Sage MATLAB interface in Snow Leopard

2009-09-02 Thread 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 >

[sage-support] Re: Completing the square

2009-09-02 Thread Robert Bradshaw
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

[sage-support] Re: Completing the square

2009-09-02 Thread CalcPage
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. Could someone please give me a barebones example, soup to nuts, of a Python vs. Sage vs. Other (Maxima and

[sage-support] Re: Sage VM Problem

2009-09-02 Thread Dan Drake
On Wed, 02 Sep 2009 at 01:50PM -0700, Bob Fish - Omnica Corporation wrote: > I downloaded the sage VM version 4.1.1 > I installed Vmware player 2.5.3 > The sage VM boots up and the menu appears. > running notebook results in a rapid flash of the IP address for notebook > then the menu appears again

[sage-support] Re: sage -t

2009-09-02 Thread Jason Grout
Minh Nguyen wrote: > Hi Jan, > > On Wed, Sep 2, 2009 at 2:31 PM, Jan Groenewald wrote: > > > >> Is there a ticket to fix this? .sage sounds good. > > This issue is now ticket #6861 > > http://trac.sagemath.org/sage_trac/ticket/6861 > I posted a one-line patch to http://trac.sagemath.org/

[sage-support] Re: Doctest output files: skipping or changing location

2009-09-02 Thread Jason Grout
Ryan Hinton wrote: > I am working with our school IT staff to install Sage. I compiled it > in a temporary location, they copied it to an "official" location (and > ran it once to regenerate path-dependencies), and now I'm trying to > run the doctests. But I get failures like the following becau

[sage-support] Re: Doctest output files: skipping or changing location

2009-09-02 Thread Jason Grout
Ryan Hinton wrote: > Set the environment variable SAGE_TESTDIR to control this location. > The school IT staff pointed me the right direction. :-) > I just glanced at the source and was going to suggest this; I'm glad you've already verified it works. I think the suggestion on the other thread

[sage-support] Re: Completing the square

2009-09-02 Thread Mikie
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. On Sep 2, 1:01 pm, William Stein wrote: > On Wed, Sep 2, 2009 at 10:48 AM, kcrisman wrote: > > > On Sep 2, 1:32 pm, Mikie

[sage-support] Re: Doctest output files: skipping or changing location

2009-09-02 Thread Ryan Hinton
Set the environment variable SAGE_TESTDIR to control this location. The school IT staff pointed me the right direction. :-) - Ryan On Sep 2, 2:50 pm, Ryan Hinton wrote: > I am working with our school IT staff to install Sage. I compiled it > in a temporary location, they copied it to an "offic

[sage-support] Re: Completing the square

2009-09-02 Thread William Stein
On Wed, Sep 2, 2009 at 10:48 AM, kcrisman wrote: > > > > On Sep 2, 1:32 pm, Mikie wrote: > > Here is my start using Sage and Maxima. > > > > def CSquare(co1,co2,co3): > > eq1=co1*x^2+co2*x+co3 > > eq3=eq1==0 > > eq2=factor(eq1) > >

[sage-support] Doctest output files: skipping or changing location

2009-09-02 Thread Ryan Hinton
I am working with our school IT staff to install Sage. I compiled it in a temporary location, they copied it to an "official" location (and ran it once to regenerate path-dependencies), and now I'm trying to run the doctests. But I get failures like the following because I don't have write-acces

[sage-support] Re: Maxima Solve sys

2009-09-02 Thread Robert Bradshaw
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

[sage-support] Re: Completing the square

2009-09-02 Thread kcrisman
On Sep 2, 1:32 pm, Mikie wrote: > Here is my start using Sage and Maxima. > > def CSquare(co1,co2,co3): >     eq1=co1*x^2+co2*x+co3 >     eq3=eq1==0 >     eq2=factor(eq1) >     eq4=(1/co1)*eq2 >     Cof1=maxima.args(eq4);Cof1a=Cof1[2]; >     val2

[sage-support] Re: Sage MATLAB interface in Snow Leopard

2009-09-02 Thread William Stein
2009/9/2 Tim Lahey > > > 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 > > Ter

[sage-support] Re: Completing the square

2009-09-02 Thread Mikie
Here is my start using Sage and Maxima. def CSquare(co1,co2,co3): eq1=co1*x^2+co2*x+co3 eq3=eq1==0 eq2=factor(eq1) eq4=(1/co1)*eq2 Cof1=maxima.args(eq4);Cof1a=Cof1[2]; val2=real(((1/2)*(maxima.coeff(eq4,x,1 val1=val2^

[sage-support] Re: sage 4.1.1 + sage-mode 0.6 = broken sage-view

2009-09-02 Thread Nick Alexander
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-

[sage-support] Re: Completing the square

2009-09-02 Thread Robert Bradshaw
On Wed, 2 Sep 2009, Mikie wrote: > > Here is a proc(Mupad) I wrote for showing the steps in completing the > square for a quad > > //Completing the Square Method of solving quadratic equation > quad:= proc(co1,co2,co3) >local a,b,c,eq1,q1,L

[sage-support] Re: Maxima Solve sys

2009-09-02 Thread Mikie
Didn't you create the API using the notebook? 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

[sage-support] Completing the square

2009-09-02 Thread Mikie
Here is a proc(Mupad) I wrote for showing the steps in completing the square for a quad //Completing the Square Method of solving quadratic equation quad:= proc(co1,co2,co3) local a,b,c,eq1,q1,Lcoef,half2,eq2,eq3,op1,op2,op3, eq1a,eq

[sage-support] Re: Sage MATLAB interface in Snow Leopard

2009-09-02 Thread Tim Lahey
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

[sage-support] Sage MATLAB interface in Snow Leopard

2009-09-02 Thread jjh
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.

[sage-support] Re: sage 4.1.1 + sage-mode 0.6 = broken sage-view

2009-09-02 Thread Minh Nguyen
Hi Pierre, On Thu, Sep 3, 2009 at 1:52 AM, Pierre wrote: > 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 ? > > help anyone ? Nick Alexander is the main author of the Sage Emacs mode a

[sage-support] sage 4.1.1 + sage-mode 0.6 = broken sage-view

2009-09-02 Thread Pierre
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

[sage-support] base_ring()

2009-09-02 Thread Jan Groenewald
Hi Is this the intended behaviour? sage: z=1.+sqrt(-1); print z; z.base_ring() 1.00 + 1.00*I Symbol

[sage-support] Re: plotting and float

2009-09-02 Thread William Stein
2009/9/1 Robert Bradshaw > > On Sep 1, 2009, at 8:58 PM, William Cauchois wrote: > > > It seems to me that the error comes from feeding a function which uses > > i into fast_float (called by the plotting functions to compile the > > function to be plotted into an optimized form). I tried a simple

[sage-support] Re: Problem with Notebook

2009-09-02 Thread William Stein
2009/9/2 Koch Peer-Joachim > Hi, > > yes. I used the history to re execute the same command. > >nohup /.../sage -python ./notebook.py > sage.ot 2>&1 & > > OK - sorry, my fault. I only checked the worksheets without logging on. > It seem's to be OK. > > 2 other questions: > 1) is it possible

[sage-support] Re: plotting and float

2009-09-02 Thread kcrisman
> The code leaves a lot to be desired. For example, now that we have   > fast_callable, with CDF support, we should be using that. Actually,   > we're using the helper function setup_for_eval_on_grid (to normalize   > the boundaries) and then ignoring the returned function, so this   > check is c

[sage-support] Re: Problem with simplify

2009-09-02 Thread Golam Mortuza Hossain
On Sep 1, 11:35 pm, Mani chandra wrote: > Mani chandra wrote: > sage: x = a + I*b > sage: real(x.conjugate().simplify()) > real_part(a) + imag_part(b) > sage: real(x.conjugate()) > real_part(a) - imag_part(b) > > Something definately seems to be wrong here. Yes, you are absolutely correct. Th

[sage-support] Re: Problem with Notebook

2009-09-02 Thread Koch Peer-Joachim
Hi, yes. I used the history to re execute the same command. nohup /.../sage -python ./notebook.py > sage.ot 2>&1 & OK - sorry, my fault. I only checked the worksheets without logging on. It seem's to be OK. 2 other questions: 1) is it possible to auth. users against a ldap server ? So all