[sage-support] Re: Maxima Solve sys

2009-09-03 Thread Mikie
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.

[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: 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] Re: Maxima Solve sys

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

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
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 fo

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
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 Brads

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
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

[sage-support] Re: Maxima Solve sys

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

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
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] On Sep 1, 10:38 am, Mikie wrote: > Sorry, wrong function > > def MSolveSys(syss): >    eqns=eval(syss) >  

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
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. > > >>

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Jason Grout
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 Pyt

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Jason Grout
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 th

[sage-support] Re: Maxima Solve sys

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