I don't know the answer to your question (it has something to do
with the Maxima-Sage interface) but the following might help
provide a work-around:
sage: soln = maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'])
sage: ssoln = str(soln).replace("%c","c").replace("40 ","40*").replace("=","==")
sage: solve(sol,c)
[c == -40*sqrt(y) - x]
sage: solve(sol,c)[0].rhs()
-40*sqrt(y) - x
sage: cxy = solve(sol,c)[0].rhs()
sage: cxy(0,10)
-40*sqrt(10)
sage:
On Wed, Apr 1, 2009 at 12:46 PM, mikkelbue <[email protected]> wrote:
>
> Can anyone tell me why this syntax will not work (I keep getting: "Is
> 40*sqrt(10)-x positive, negative, or zero?")?
>
> h=maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'],[0,10])
> assume(40*sqrt(10)-x>0)
> y=var('y')
> solve(h,y)
>
> Regards, Mikkel
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---