[sage-support] (x-3)/2--Maxima

2010-01-15 Thread Mikie
Is there anyway to get Maxima to do (x-3)/2 to produce 1/2x-3/2? Thanx -- 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

[sage-support] Re: (x-3)/2--Maxima

2010-01-15 Thread Mikie
I figured it out. Put the denom and num into varibles, then expanded the expression with 1/denom times the num. On Jan 15, 1:46 pm, Mikie thephantom6...@hotmail.com wrote: Is there anyway to get Maxima to do (x-3)/2 to produce 1/2x-3/2? Thanx -- To post to this group, send email to sage

[sage-support] Moodle, Stack question, Twisted server, math grant money

2010-01-13 Thread Mikie
Is anyone interested in collaborating for some of the math education grant money? I have already create the following online math learning system. Check out the demo movies. Eduscape’s online math learning system Features •

[sage-support] Re: latex binary and dvips binary

2009-12-18 Thread Mikie
produces substandard results. It can also be that dvips is set up to create 300 DPI (dots per inch) docs - this is easy to fix then (but depends upon a particular setup). You can try using -D option of dvips (with value 600, say) HTH, Dmitrii 2009/12/18 Mikie thephantom6...@hotmail.com

[sage-support] Re: latex binary and dvips binary

2009-12-17 Thread Mikie
, of course. Robert On 16 pro, 14:39, Mikie thephantom6...@hotmail.com wrote: I have to do it in my home directory.  I have the two files -- tet- latex 3.0-33.8.el5.ie386.rpm and tet-dvips 3.0-33.8.el5.ie386.rpm. This for Centos 5.3.  Now what do I do. On Dec 16, 5:55 am, Dima Pasechnik

[sage-support] Re: latex binary and dvips binary

2009-12-17 Thread Mikie
It took about hour and a half. The fonts are a little fuzzy. Is there anyway to fix this? On Dec 17, 11:38 am, Mikie thephantom6...@hotmail.com wrote: Robert, great stuff.  I am installing now.  How long does it take? On Dec 17, 1:33 am, ma...@mendelu.cz ma...@mendelu.cz wrote: I think

[sage-support] Re: latex binary and dvips binary

2009-12-16 Thread Mikie
not need root permissions for this (but make sure you have enough disk space - I imagine such providers have disk quotas; a reasonable installation of tex can easily take 250Mb or so -- you get get away with much less, but this would require some work) 2009/12/16 Mikie thephantom6...@hotmail.com

[sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Mikie
I need latex binary and dvips binary. My Linux is poor. Where do I get it and how to install. On Dec 14, 4:30 pm, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Mikie, On Tue, Dec 15, 2009 at 10:04 AM, Mikie thephantom6...@hotmail.com wrote: Is the latex and dvips binary installed in the Sage

[sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Mikie
Centos 5.3 on BlueHost. On Dec 15, 9:52 am, Jaap Spies j.sp...@hccnet.nl wrote: Mikie wrote: I need latex binary and dvips binary.  My Linux is poor.  Where do I get it and how to install. What OS are you on? Linux, but which distribution? Jaap -- To post to this group, send email

[sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Mikie
I tried yum install textlive and it gave me the following error--error accessing file for config file ///etc/yum.conf. I can't get to the Package Manager. It is on BlueHost. On Dec 15, 10:18 am, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Mikie, On Wed, Dec 16, 2009 at 4:14 AM, Mikie

[sage-support] Re: latex binary and dvips binary

2009-12-15 Thread Mikie
BlueHost is my webhost. I have talked to support and they won't install latex binary or dvips binary. On Dec 15, 11:25 am, Jaap Spies j.sp...@hccnet.nl wrote: Mikie wrote: I tried yum install textlive and it gave me the following error--error accessing file for config file ///etc/yum.conf

[sage-support] latex binary and dvips binary

2009-12-14 Thread Mikie
Is the latex and dvips binary installed in the Sage directory? If so where? Thanx -- 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

[sage-support] maxima-great stats

2009-11-17 Thread Mikie
I am using the stats package in Maxima. Works great. Don't have to use eval. I developing a function for the student tTest. take a list for the data. I put some bad data in the list --example- [44,55,55/0,14*2]. Maxima takes the list in and finds the divide by 0. By the way the 14*2 works

[sage-support] Re: maxima-great stats

2009-11-17 Thread Mikie
Hi Harald, No I don't have R. I did convert the list(str) to a real list and did a trap on that and it did work. How do I get R into Sage? Thanx On Nov 17, 2:58 pm, Harald Schilly harald.schi...@gmail.com wrote: On Nov 17, 10:10 pm, Mikie thephantom6...@hotmail.com wrote: student tTest Hi

[sage-support] Re: just Maxima

2009-11-13 Thread Mikie
Robert, Can one load just Maxima using a Python script? Something like import maxima I sent you an e-mail. Your work with calculaus is great. My tutoring servers are getting better with time. Thanx On Nov 12, 3:32 pm, ma...@mendelu.cz ma...@mendelu.cz wrote: On 12 lis, 23:24, Erik Lane

[sage-support] maxima stats

2009-11-13 Thread Mikie
Just looking at the stats package in Maxima. Not bad. Is there anyway to take out parts of the calculations? Thanx --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] just Maxima

2009-11-12 Thread Mikie
I have developed a Twisted server(Python) for tutoring students. Is it possible to use just Maxima for the functions? My first line is from twisted.web import static,server,http from sage.all import* from twisted.internet import stdio, reactor, protocol from twisted.spread import pb from

[sage-support] Re: just Maxima

2009-11-12 Thread Mikie
Robert, Bad link. On Nov 12, 11:36 am, ma...@mendelu.cz ma...@mendelu.cz wrote: Do you mean MAW athttp://user.mendelu.cz/marik/maw/? There are some forms which take input, run through maxima and show output. Sources are at sourceforge. Nothing special, since I am not programmer and cannot

[sage-support] Re: Sage upgrade

2009-11-11 Thread Mikie
Marshall, It 8 hours to do the initial install from the source. I would like to evade this. Mikie On Nov 10, 2:54 pm, Marshall Hampton hampto...@gmail.com wrote: do: sage -upgrade from a shell and after downloading some information you will have to respond Y to whether you want

[sage-support] Re: Sage upgrade

2009-11-10 Thread Mikie
Simon, No, I haven't any upgrade. Could you tell explicitly what to do for the upgrade? On Nov 10, 1:33 pm, Simon King simon.k...@nuigalway.ie wrote: Hi Mikie On 10 Nov., 16:42, Mikie thephantom6...@hotmail.com wrote: I would like to upgrade from 3.2 to 4.??.  The computer is a P4 in my

[sage-support] maxima

2009-11-04 Thread Mikie
Is the Maxima that Sage uses a full version? Where is Maxima in the Sage directory? Can I load Maxima and do some command line work? Thanx --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

[sage-support] Re: maxima

2009-11-04 Thread Mikie
Willian, Thanks, I found it. How do I start it. On Nov 4, 8:35 am, William Stein wst...@gmail.com wrote: On Wed, Nov 4, 2009 at 7:22 AM, Mikie thephantom6...@hotmail.com wrote: Is the Maxima that Sage uses a full version? Yes  Where is Maxima in the Sage directory?  Can I load Maxima

[sage-support] Re: maxima

2009-11-04 Thread Mikie
Willian, I found it. In /local/bin/ On Nov 4, 9:26 am, William Stein wst...@gmail.com wrote: On Wed, Nov 4, 2009 at 8:24 AM, Mikie thephantom6...@hotmail.com wrote: Willian, Thanks, I found it.  How do I start it. Type    ./sage -maxima from the root of your Sage install

[sage-support] maxima to sage

2009-11-03 Thread Mikie
Is there anyway to convert a maxima expression ('sage.interfaces.maxima.MaximaElement') to ('sage.calculus.SymbolicArithmetic')? I need to use Sage's factor instead of Maxima's. Thanx --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Re: maxima to sage

2009-11-03 Thread Mikie
' sage: ff.factor() (x - 1)*(x + 1) On Tue, Nov 3, 2009 at 3:28 PM, Mikie thephantom6...@hotmail.com wrote: Is there anyway to convert a maxima expression ('sage.interfaces.maxima.MaximaElement') to ('sage.calculus.SymbolicArithmetic')? I need to use Sage's factor instead of Maxima's

[sage-support] Re: maxima's '

2009-10-28 Thread Mikie
. It doesn't look like what I want is doable. Thanks for your help (William and Simon). On Oct 28, 3:05 am, Simon King simon.k...@nuigalway.ie wrote: Mikie, On 28 Okt., 08:36, Simon King simon.k...@nuigalway.ie wrote: On 27 Okt., 23:48, Mikie thephantom6...@hotmail.com wrote: I have it kind

[sage-support] maxima's '

2009-10-27 Thread Mikie
Is there anyway to use maxima's -- '--- in the version of Maxiam in Sage? Thanx --~--~-~--~~~---~--~~ 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

[sage-support] Re: maxima's '

2009-10-27 Thread Mikie
? On Oct 27, 1:48 pm, William Stein wst...@gmail.com wrote: On Tue, Oct 27, 2009 at 12:06 PM, Mikie thephantom6...@hotmail.com wrote: Is there anyway to use maxima's  -- '--- in the version of Maxiam in Sage? I don't understand what you're asking.  However, I can say with certainty

[sage-support] Re: maxima's '

2009-10-27 Thread Mikie
When I get to latex(g) I get {{x^2}\over{2}} no integral. I am using Sage V3.4. Could this be causing the problem? On Oct 27, 3:03 pm, William Stein wst...@gmail.com wrote: On Tue, Oct 27, 2009 at 1:49 PM, Mikie thephantom6...@hotmail.com wrote: If one enters in Maxima (The windows version

[sage-support] Re: maxima's '

2009-10-27 Thread Mikie
! On 27 Okt., 23:19, Mikie thephantom6...@hotmail.com wrote: When I get to latex(g) I get {{x^2}\over{2}} no integral. I am using Sage V3.4.  Could this be causing the problem? Probably. The whole symbolics stuff has changed since then. A complete session with version 4.2: sage: x

[sage-support] hold function

2009-10-26 Thread Mikie
Does anyone have a Sage hold frunction? Look at the code below - def LikeSimplify1a(ex1,ex2,ex3,ex4): eq1=str(ex1)+++(+str(ex2)+)+++(+str(ex3)+)+++(+str (ex4)+) n1=SR(ex1);n2=SR(ex2);n3=SR(ex3);n4=SR(ex4) eq2=maxima.ratsimp(n1+n2+n3+n4) return

[sage-support] Re: sqrt(16)

2009-10-23 Thread Mikie
Thanks, Burcin. I tried using a string rep, but it still evaluates in my Python script. On Oct 23, 1:12 am, Burcin Erocal bur...@erocal.org wrote: On Thu, 22 Oct 2009 15:16:32 -0700 (PDT) Mikie thephantom6...@hotmail.com wrote: I want to take the expression sqrt(16) from a function

[sage-support] sqrt(16)

2009-10-22 Thread Mikie
I want to take the expression sqrt(16) from a function parameter and return the sqrt(16) not 4. Is this possible? Thanx --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: slope function

2009-10-19 Thread Mikie
Thanks, either suggestion worked. I was doing this in my definite integral function. Robert, someone hacked my e-mail. I just sent you a new e-mail this morning. I would really like to collaborate with you on the server, if you are interested. We are doing very similar things. Do you have

[sage-support] slope function

2009-10-16 Thread Mikie
I am trying to create a simple slope of a line function that shows all the steps in calculating a slope. It takes four numeric values. In the first step I would like the user to see m =(1-2)/(3+8). Pretty print. Using latex? I would then do some simplifying and show m= (-1/11). I have tried

[sage-support] Re: plot(from server)

2009-10-15 Thread Mikie
When my users create a plot and their graphing session is finished how do I remove the png file? On Oct 14, 3:54 pm, Jason Grout jason-s...@creativetrax.com wrote: Mikie wrote: Jason, Looks too easy. I am doing this all in a Python script.  From your answer, it sounds like you figured

[sage-support] Re: plot(from server)

2009-10-15 Thread Mikie
to be removed after the session. On Oct 15, 10:19 am, William Stein wst...@gmail.com wrote: On Thu, Oct 15, 2009 at 8:58 AM, Jason Grout jason-s...@creativetrax.com wrote: Mikie wrote: When my users create a plot and their graphing session is finished how do I remove the png file? Did

[sage-support] plot(from server)

2009-10-14 Thread Mikie
I want to include a simple plotting form in my server. I noticed in the notebook the plotting function creates an image. It must save it to the server then display it. My output page displays strings request.write(p%s/p % part1) Is there anyway to get it to display an image? Thanx

[sage-support] Re: plot(from server)

2009-10-14 Thread Mikie
Jason, Looks too easy. I am doing this all in a Python script. On Oct 14, 2:59 pm, Jason Grout jason-s...@creativetrax.com wrote: Mikie wrote: I want to include a simple plotting form in my server.  I noticed in the notebook the plotting function creates an image.  It must save

[sage-support] import

2009-10-12 Thread Mikie
My Python script is getting very large. The html pages I am creating are all class defs. Can I save the defs in a text file then import them? If so where do I put them. Isn't Sage just one large bounce of Python files? Please, excuse my lack of Python/Sage knowledge. Six months ago I

[sage-support] Re: latex

2009-10-08 Thread Mikie
).sage() latex(R3) R. On 6 říj, 22:25, Mikie thephantom6...@hotmail.com wrote: Yes, your right.  I am latexing a value from maxima.solve(x^2-x-3,x). Then maxima.rhs().  Then latexing the value.  It still gives me the \over.  I am using 3.4. When I assign it to a variable it works

[sage-support] Re: latex

2009-10-08 Thread Mikie
Robert, thanks the R3=maxima.rhs(R1).sage() worked. --~--~-~--~~~---~--~~ 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

[sage-support] 1-dim display(notebook)

2009-10-07 Thread Mikie
Is there anyway to have output in the notebook be 1-dim like input? expand((x-2)^2) would produce x^2-4*x+4, not the 2-dim output or pretty print. It seems like I have done it before. Maybe SR(). I would like to copy the output and use as input. Thanx

[sage-support] Re: 1-dim display(notebook)

2009-10-07 Thread Mikie
: Hello, On Wed, Oct 7, 2009 at 8:39 PM, Mikie thephantom6...@hotmail.com wrote: Is there anyway to have output in the notebook be 1-dim like input? This is the default for the notebook.  Do you have the Typeset box checked? Also, what version of Sage are you using? version() William

[sage-support] Re: 1-dim display(notebook)

2009-10-07 Thread Mikie
I have a 2-dim equation. Maxima did it and I don't see anyway to do it without Maxima. Can this 2-dim equation be converted to 1-dim? On Oct 7, 8:37 am, Mikie thephantom6...@hotmail.com wrote: Version 3.4.  The problem I am having is \over.  Maxima is causing it, thus I am using Sage-solve

[sage-support] Re: 1-dim display(notebook)

2009-10-07 Thread Mikie
I figured out the problem. I was building the quad using coefficients (numeric). I am now taking in a normal quad. Maxima has no effect. On Oct 7, 9:57 am, Mikie thephantom6...@hotmail.com wrote: I have a 2-dim equation.  Maxima did it and I don't see anyway to do it without Maxima.  Can

[sage-support] latex

2009-10-06 Thread Mikie
If I have this a1=-(sqrt(13)-1)/2 in a variable, then latex(a1) it produces -{{\sqrt[13]-1\over[2}}. If I do latex(-{{\sqrt[13]-1\over[2}}) get \frac{1-\sqrt{13}}{2}, which is what I want. This is in a function. I need the latter. The \over does not do the pretty print. Is there a work

[sage-support] Re: latex

2009-10-06 Thread Mikie
Robert Marik On 6 říj, 21:10, Mikie thephantom6...@hotmail.com wrote: If I have this a1=-(sqrt(13)-1)/2 in a variable, then latex(a1) it produces -{{\sqrt[13]-1\over[2}}. If I do  latex(-{{\sqrt[13]-1\over[2}}) get \frac{1-\sqrt{13}}{2}, which is what I want. This is in a function.  I

[sage-support] Re: twisted server

2009-10-02 Thread Mikie
Alex, try http://pirsqr.com:2713/ and do the integral calculation. I had to use request.write in the posthandler and it produces the Request did not return a string. I can't use return, because the html page is in parts. On Oct 2, 6:27 am, Dr. David Kirkby david.kir...@onetel.net wrote:

[sage-support] Re: twisted server

2009-10-02 Thread Mikie
Alex, just sent you an e-mail with code. On Oct 2, 1:29 pm, Alex Clemesha cleme...@gmail.com wrote: On Fri, Oct 2, 2009 at 12:24 PM, Mikie thephantom6...@hotmail.com wrote: Alex, you lost me. Here is the start of my code for the render - #This  new

[sage-support] class problem

2009-10-01 Thread Mikie
I have a class with a lot of def functions. It says 2 args. Right. It says I am passing 3. I am not a Python wizard. Thanx Calling it with val31a=SR(request.args['Expression2'][0]) val30a = SR(request.args['Var2'][0]) s = Rfuncs() ans=s.Integrate3a(val31a,val30a) class

[sage-support] Re: class problem

2009-10-01 Thread Mikie
Minh, thanks so much. Have a good one. On Oct 1, 8:43 am, Minh Nguyen nguyenmi...@gmail.com wrote: On Fri, Oct 2, 2009 at 12:35 AM, Tim Joseph Dumol t...@timdumol.com wrote: All instance functions of a class must take `self` as its first argument. It is implicitly passed. Also, see the

[sage-support] Re: twisted server

2009-09-30 Thread Mikie
, William Stein wst...@gmail.com wrote: On Tue, Sep 29, 2009 at 4:41 PM, Alex Clemesha cleme...@gmail.com wrote: On Tue, Sep 29, 2009 at 8:26 AM, Mikie thephantom6...@hotmail.com wrote: Does anyone have an example of a twisted server that loads 2 html pages from a url

[sage-support] Re: twisted server

2009-09-30 Thread Mikie
:42 PM, William Stein wst...@gmail.com wrote: On Tue, Sep 29, 2009 at 4:41 PM, Alex Clemesha cleme...@gmail.com wrote: On Tue, Sep 29, 2009 at 8:26 AM, Mikie thephantom6...@hotmail.com wrote: Does anyone have an example of a twisted server that loads 2 html pages from a url

[sage-support] Re: twisted server

2009-09-30 Thread Mikie
, menu()) root.putChild(rim, rwrite()) factory = Site(root) reactor.listenTCP(, factory) reactor.run() - On Sep 30, 1:02 pm, Alex Clemesha cleme...@gmail.com wrote: On Wed, Sep 30, 2009 at 11:53 AM, Mikie thephantom6...@hotmail.com wrote: No, Alex

[sage-support] Re: statistics in sage

2009-09-28 Thread Mikie
There is a nice stats package in Scipy with Numpy. On Sep 26, 1:34 am, Robert Bradshaw rober...@math.washington.edu wrote: Yes, there's some stuff in the finance.time_series for doing simple   stats over the reals. (This really needs to be put somewhere more   obvious, along with histogram,

[sage-support] Re: jsMath working on server

2009-09-25 Thread Mikie
/ On Sep 23, 10:35 am, Mikie thephantom6...@hotmail.com wrote: Finally I have jsMath working on my server. Tryhttp://pirsqr.com:1843/ Really strange works great on IE8, but not quit as good with FireFox. The integrator has all the pretty print.  Put int in the type and take a look at the pretty

[sage-support] jsMath working on server

2009-09-23 Thread Mikie
Finally I have jsMath working on my server. Try http://pirsqr.com:1843/ Really strange works great on IE8, but not quit as good with FireFox. The integrator has all the pretty print. Put int in the type and take a look at the pretty print output. I would like some feedback on how FireFox

[sage-support] Re: latex/jsmath error

2009-09-22 Thread Mikie
Can I do --- gcc (with C++ support) make--out m4-- out per-- out ranlib--out tar--out latex -- just this -- On Sep 14, 6:36 pm, William Stein wst...@gmail.com wrote: On Mon, Sep 14, 2009 at 1:21 PM, Mikie thephantom6...@hotmail.com wrote: This is from

[sage-support] Re: eval(string)

2009-09-16 Thread Mikie
 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Sep 14, 2009, at 12:09 PM, Mikie wrote: Robert, Can I use your technique above to input this string?  The [5]*3 gives me a problem L1=[3,10,15,23,25,30,3,[5]*3] You can, but here you're getting to the point where you're allowing

[sage-support] Completing the square

2009-09-16 Thread Mikie
Try my completing the square function http://pirsqrt.com:1843 Robert, thanks for all your help. A lot of work to get the = in the output. Maxima really helped. I think I traped most of the bad input. Did not use eval any place in the Python scipt.

[sage-support] Access to restricted URI denied

2009-09-15 Thread Mikie
I am trying again to get jsMath to work on my API server. I am loading load.js in my Python script and it seems to load. However, tex2math that is in the plugins directory and gives me Access to restricted URI denied. I will give anyone a copy of my API for help on solving this problem.

[sage-support] Re: eval(string)

2009-09-14 Thread Mikie
Robert, Can I use your technique above to input this string? The [5]*3 gives me a problem L1=[3,10,15,23,25,30,3,[5]*3] On Sep 10, 1:56 pm, Robert Bradshaw rober...@math.washington.edu wrote: On Sep 10, 2009, at 12:24 PM, Robert Bradshaw wrote: On Sep 9, 2009, at 9:01 AM, Tim Dumol

[sage-support] latex/jsmath error

2009-09-14 Thread Mikie
Put from sage.misc.latex import JSMath into the notebook. Then %latex $x^2-x$ Then I get the following error An error occured. Error latexing slide. It is possible to do Latex in Sage? --~--~-~--~~~---~--~~ To post to

[sage-support] Re: latex/jsmath error

2009-09-14 Thread Mikie
not found An error occured. Error latexing slide. Using Firefox. Sage Version 3.2. On Sep 14, 2:02 pm, John H Palmieri jhpalmier...@gmail.com wrote: On Sep 14, 12:38 pm, Mikie thephantom6...@hotmail.com wrote: Put from sage.misc.latex import JSMath Why?  This is imported into the notebook

[sage-support] Display but don't calc

2009-09-11 Thread Mikie
Is there anyway to display an expression in the notebook, but not have it calculate? Such sqrt(4)+sqrt(12). Don't simplify. Or integral (x^2,x) Thanx --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Re: Maple

2009-09-10 Thread Mikie
In the thread on Mathematica, is it possible to use it in the notebook. I would also need to work in a Python script. On Sep 10, 9:22 am, William Stein wst...@gmail.com wrote: On Thu, Sep 10, 2009 at 8:04 AM, Mikie thephantom6...@hotmail.com wrote: Is it possible to use Maple(V

[sage-support] Re: eval(string)

2009-09-09 Thread Mikie
...@math.washington.edu wrote: On Sep 8, 2009, at 11:28 AM, Mikie wrote: Here is the function --- def BasicStats1a(exp1):     v = exp1     v1 = eval(v);Count_=len(v1)     sort_v1=sorted(v1)     M1 =stats.mode(v1); v3=eval(str(M1[0])); v4=eval(str(M1[1]))     R1

[sage-support] eval(string)

2009-09-08 Thread Mikie
I am taking a string that is a list. It is coming from a html form. Is there anyway other than eval to get the value from the list? When I take a single value from the form I use SR and it works, but no luck with the list. Thanx --~--~-~--~~~---~--~~ To post to

[sage-support] Re: eval(string)

2009-09-08 Thread Mikie
, what kind of list it is? Post an example, tell us what web form it is (if necessary) and what do you want to do with it? Besides eval, there is also sage_eval. H On Sep 8, 7:01 pm, Mikie thephantom6...@hotmail.com wrote: I am taking a string that is a list.  It is coming from a html form

[sage-support] Re: Maxima Solve sys

2009-09-03 Thread Mikie
. 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 rober...@math.washington.edu wrote: On Wed, 2 Sep 2009, Mikie wrote: Didn't you create the API using the notebook? Yes, I

[sage-support] Re: Completing the square

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

[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,

[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 rober...@math.washington.edu 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

[sage-support] Re: Completing the square

2009-09-02 Thread Mikie
^2 + 3*x/2 + sage261 + 2 9/16 Why the sage261? On Sep 2, 11:09 am, Robert Bradshaw rober...@math.washington.edu wrote: 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

[sage-support] Re: Completing the square

2009-09-02 Thread Mikie
wrote: On Sep 2, 1:32 pm, Mikie thephantom6...@hotmail.com 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

[sage-support] Maxima Solve sys

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

[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 jason-s...@creativetrax.com wrote: Robert Bradshaw wrote: On Sep 1, 2009, at 9:17 AM, Mikie wrote: Here is function I am using to solve systems

[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 thephantom6...@hotmail.com wrote: Sorry, wrong function def MSolveSys(syss

[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 rober...@math.washington.edu wrote: On Tue, 1 Sep 2009, Mikie wrote: When I run the server

[sage-support] Re: Maxima Solve sys

2009-09-01 Thread Mikie
for another .js file it cannot find. On Sep 1, 12:37 pm, Mikie thephantom6...@hotmail.com wrote: Yes, Robert eval is doing the rounding.  How do I fix it? On Sep 1, 12:31 pm, Mikie thephantom6...@hotmail.com wrote: I have tried SR.  I get a malformed value.  Yes, I understand the problem

[sage-support] Re: Malformed expression

2009-08-31 Thread Mikie
I figured it out. I wasn't converting the value from maxima.solve() back to string. Thanks for looking at the code. On Aug 31, 2:54 pm, Jason Grout jason-s...@creativetrax.com wrote: Mikie wrote: Using this function in a Python script def MSolveSys(syss):    eqns=eval(syss)    solns

[sage-support] output in 3.4 and 4.0

2009-08-26 Thread Mikie
When I print the results of a calculation from my twisted server in Sage 3.4 and 4.0, 4.0 messes up the output. Try http://thwaite.phys.ualberta.ca:/ (This 4.0, try the Laplace function) http://pirsqrt.com:1843/(This is 3.4) Use the codes at the top of the html page to select the function.

[sage-support] Re: Load Maxima

2009-08-19 Thread Mikie
William, hi Mikie, On 19 Aug., 01:27, William Stein wst...@gmail.com wrote: On Tue, Aug 18, 2009 at 2:30 PM, Mikiethephantom6...@hotmail.com wrote: Yes, that works. However, I am trying to create a function that has Maxima functions in it and I can't seem to pass values to it.  I am

[sage-support] Re: Load Maxima

2009-08-18 Thread Mikie
=maxima(s3:x*y;); return a1 - Is it possible to pass the variables into Maxima function? On Aug 18, 5:30 am, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Mikie, On Tue, Aug 18, 2009 at 7:16 AM, Mikiethephantom6...@hotmail.com wrote: How do I load Maxima?  I using

[sage-support] Load Maxima

2009-08-17 Thread Mikie
How do I load Maxima? I using a Python script. Thanx --~--~-~--~~~---~--~~ 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

[sage-support] textarea output

2009-08-07 Thread Mikie
I have created a API for student math interaction using Sage. My version of Sage on the server is 3.4. The output is in a textarea and it looks good. Not as good as pretty print(jsmath). When I use my server on 4.0 the output looks bad. All on one line. What has happened to 4.0? Is there

[sage-support] floating point solve

2009-08-04 Thread Mikie
I need some help with a solve function that gives fp solutions to all types of equations. Possibly allowing an interval. I have tried def FPSolver2a(val1,val2,val3): var('val1,val2,val3') a2=SR(val1) q1=find_root(xy,p,q) return q1 I need to put it into a python script, so no

[sage-support] Re: correlation coefficient

2009-07-21 Thread Mikie
Yes, thanks Giovanni. Numpy worked. On Jul 21, 1:51 am, giovanni.marche...@ds.unifi.it giovanni.m.marche...@gmail.com wrote: I read in the listing of the function     warnings.warn(\ scipy.stats.corrcoef is deprecated; please update your code to use numpy.corrcoef. Please note that:    

[sage-support] correlation coefficient

2009-07-20 Thread Mikie
Still working on my Stats server. Is there a function in Scipy that will calculate the correlation coef.? I have found something that looks good, but I do not understand the parameters. scipy.stats.corrcoef(x,y,rowvar, bias) x,y represents the independent, dependent variables, rows, I don't

[sage-support] sort a list

2009-07-15 Thread Mikie
How does one sort a list in Sage? I have tried L1=[56,2,4,10] Sort_ = L1.sort() and nothing is produced. I need it to calculate Quartiles. Is there a Quatile function in any of the modules? Thanks --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Re: sort a list

2009-07-15 Thread Mikie
Carlos, just what I needed. I have looked in scipy, but no Quartiles. On Jul 15, 1:26 pm, Carlos Córdoba ccordob...@gmail.com wrote: This is not about RTFM, because L1.sort() doesn't produce any result. It just modifies the original list in place. I think that Mikie wants to assign

[sage-support] adding cells

2009-07-14 Thread Mikie
I have several worksheets in my file list. Just created new notebook and I can only add about 7 cells. Why is this? Is there some kind of limit? Thanks --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Mikie
I am using 3.2.2 sage. Will this fix work? The work around is working for me and I would like not to damage the 40 stat functions I have created. Thanks On Jul 10, 3:10 am, Robert Bradshaw rober...@math.washington.edu wrote: On Jul 9, 2009, at 1:57 PM, Kevin Horton wrote: On 9 Jul

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Mikie
If it works don't fix. I like 3.2.2 because of the output in a textarea is nicer than 4.0. I will leave it along. On Jul 10, 10:19 am, Robert Bradshaw rober...@math.washington.edu wrote: On Jul 10, 2009, at 9:13 AM, Mikie wrote: I am using 3.2.2 sage.  Will this fix work? No idea

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread Mikie
Robert, how do I update my sage installation when you create a patch. Do I have to reinstall Sage? Thanx On Jul 9, 5:37 am, Ahmed Fasih wuzzyv...@gmail.com wrote: Jason, Robert, I'm trying to understand the patch, but it looks like this is a fix for *all* Numpy/Scipy-Sage type issues? If

[sage-support] Collaborate

2009-07-07 Thread Mikie
I am looking for someone to help with my API. It is working rather nicely, but I do not have pretty_print working. I have installed JSmath in a plain html page and it works. I have put it in my server, but when it trys to call a javasript other than load.js there is a problem. Does anyone

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Mikie
mode: start Sage with sage -ipython -pylab and you don't have to worry about the preprocessor. On Jul 3, 3:30 pm, Mikie thephantom6...@hotmail.com wrote: I am trying to use the binomial pmf function in Scipy.  Forget the question I will write my own. Thanx On Jul 3, 9:32 am

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Mikie
Kevin, It worked. Thanks, a lot. On Jul 6, 3:33 pm, Kevin Horton khorto...@rogers.com wrote: Maybe you can use: sage: RealNumber=float; Integer=int or, explicitly define the number type when calling the scipy function. Good luck, Kevin Horton On 6 Jul 2009, at 15:57, Mikie wrote

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Mikie
on the FAQ: cast the types to float() explicitly, turn off the pre-processor temporarily, redefine RealNumber() and Integer() to float() and int(), etc. etc. If none of these answer your question, please describe what you're trying to do and what errors you are getting. On Jul 6, 3:57 pm, Mikie

  1   2   >