On Sep 2, 1:32 pm, Mikie <[email protected]> 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=real(((1/2)*(maxima.coeff(eq4,x,1))))
>     val1=val2^2
>     eq5=eq4+val1
>     return eq3,eq2,eq4,eq5,val1
> --------------------------------------------------
>
> The val1 does produce 9/16.  This is good, but when I add it to the
> lhs I get (here is my output)
> -------------------------------------
>
> 2*x^2 + 3*x + 4 == 0
> 2*(x^2 + 3*x/2 + 2)
> x^2 + 3*x/2 + 2
> x^2 + 3*x/2 + sage261 + 2
> 9/16
> --------------------------------
> Why the "sage261"?
>

Looks like a Maxima or Sage session id.  That can happen when Sage
gives Maxima something it doesn't understand.  Does your input include
any functions?

- kcrisman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to