[sage-support] Re: solve() problem

2010-08-19 Thread kcrisman
On Aug 19, 5:39 pm, robin hankin wrote: > Hello Simon > > thanks for this. One problem > with the solution you mention is that I can't do the > general case.  What I need is the sage equivalent > of mathematica's Reduce[] function. > I think that solve() is the closest that comes to this (thoug

[sage-support] Is there any multivariable ode solver in sage?

2010-08-19 Thread Alex Efrain
Because i want to solve the double pendulum problem .It seems that there's not a multivariable (theta_1 thetha_2) ode solver in sage. -- 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

Re: [sage-support] Re: solve() problem

2010-08-19 Thread robin hankin
Hello Simon thanks for this. One problem with the solution you mention is that I can't do the general case. What I need is the sage equivalent of mathematica's Reduce[] function. Is there one? rksh On Thu, Aug 19, 2010 at 10:06 PM, Simon King wrote: > Hi! > > On 19 Aug., 22:41, robin hankin

[sage-support] Re: solve() problem

2010-08-19 Thread Simon King
Hi! On 19 Aug., 22:41, robin hankin wrote: > sage>solve([a*b==15*I-5,a*conjugate(b)==-13*I+9],[a,b]) > [] > > So, from the first two lines I know that a=2+I, b=1+7I should > be a solution to the system in the third, yet solve()  returns empty. Admittedly I am no expert for symbolics, and I don't

[sage-support] solve() problem

2010-08-19 Thread robin hankin
hello everyone I can't make solve() do what I want. Look at this: sage> (2+I)*(1+7*I) 15I-5 sage> (2+I)*(1-7*I) -13I+9 sage>solve([a*b==15*I-5,a*conjugate(b)==-13*I+9],[a,b]) [] So, from the first two lines I know that a=2+I, b=1+7I should be a solution to the system in the third, yet solve(

[sage-support] Re: quiery about polynomial rings

2010-08-19 Thread Bill Hart
On 19 Aug, 18:52, kcrisman wrote: > > I wonder if there is a reason for this. Do the additions break the > > lexeme or is there a syntactic ambiguity... > > William or Mike H. would know for sure, but I believe the additions > are all invalid Python which happen to be convenient mathematics :)

[sage-support] Re: quiery about polynomial rings

2010-08-19 Thread kcrisman
> I wonder if there is a reason for this. Do the additions break the > lexeme or is there a syntactic ambiguity... William or Mike H. would know for sure, but I believe the additions are all invalid Python which happen to be convenient mathematics :) > > And using the preparse() command to find

[sage-support] Re: How can I create zoomed area with Matplotlib under Sage?

2010-08-19 Thread kcrisman
On Aug 19, 1:16 pm, Tobias Katz wrote: > Hi, > since ask.sagemath.org seems not to work at the moment and I really need > a solution for this, I write to the mailing-list. You only posted there 36 minutes ago! Most likely someone will have answered there eventually. I just tried, but got a tr

[sage-support] Re: quiery about polynomial rings

2010-08-19 Thread Bill Hart
On 19 Aug, 18:19, kcrisman wrote: > On Aug 19, 12:48 pm, Bill Hart wrote: > > > I'm not sure if that is what he means. He is using Sage to load > > the .py file, not python. > > Exactly.  Sage interprets .py files as pure Python, I believe.  But it > turns .sage files into .py files which have

[sage-support] Re: quiery about polynomial rings

2010-08-19 Thread kcrisman
On Aug 19, 12:48 pm, Bill Hart wrote: > I'm not sure if that is what he means. He is using Sage to load > the .py file, not python. > Exactly. Sage interprets .py files as pure Python, I believe. But it turns .sage files into .py files which have already been 'preparsed'. A .py file is just P

[sage-support] How can I create zoomed area with Matplotlib under Sage?

2010-08-19 Thread Tobias Katz
Hi, since ask.sagemath.org seems not to work at the moment and I really need a solution for this, I write to the mailing-list. I need to create a zoomed subarea in a Matplotlib-Plot under sage. In the Matplotlib galery is pretty much what i need. http://matplotlib.sourceforge.net/examples/axes_g

[sage-support] Re: quiery about polynomial rings

2010-08-19 Thread Bill Hart
I'm not sure if that is what he means. He is using Sage to load the .py file, not python. So he wants to know which modules to import to be able to use multivariate polynomials in Sage from a (sage, not python) .py file. He is trying to develop for Sage, not just use it from the sage prompt. My a

[sage-support] Re: quiery about polynomial rings

2010-08-19 Thread kcrisman
Dear Andrew, It turns out that R.=PolynomialRing(GF(5),2,"z") is not valid Python, I believe; Sage has a 'preparser' that helps make more things possible. I believe if you do sage: preparse('command') you will see the actual Python that gets done. One the other hand, you could just name your

[sage-support] quiery about polynomial rings

2010-08-19 Thread andrew ewart
If i input R.=PolynomialRing(GF(5),2,"z") direclty to sage it accepts it as a polynomial ring But if i try to save it as part of a .py file and then load it from there into sage ie sage my.py it gives me a syntax error what module am i missing and so what command do i need to make sage recognise it