I don't know about to_poly, but 3+4*v +5*v^2 is an example of a polynomial
in v.
BUT
3+4*sqrt(v) is NOT a polynomial in v.
3+4*v+5*v^2=1 is NOT a polynomial in v either. It is an equation whose
left hand side is a polynomial in v.
RJF
_____
From: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu]
On Behalf Of van Nek
Sent: Saturday, September 08, 2007 4:19 AM
To: Maxima at math.utexas.edu
Subject: topoly vs. to_poly
Hi (Barton),
can you please give me a hint, how to use the new to_poly function and how I
can get the same result as before with topoly?
Thanks
Volker
Maxima 5.12.0 http://maxima.sourceforge.net
...
(%i1) wcc(v) := 0.478+0.237*sqrt(v)-0.0124*v$
(%i2) load(topoly)$
(%i3) topoly( wcc(v)=1 ), ratprint:false;
2
(%o3) 3844 v - 1080585 v + 6812100 = 0
Maxima 5.13.0 http://maxima.sourceforge.net
...
(%i1) wcc(v) := 0.478+0.237*sqrt(v)-0.0124*v$
(%i2) load(topoly)$
(%i3) to_poly( wcc(v)=1 ), ratprint:false;
2 %pi
%pi
(%o3) [[- 0.0124 v + 0.237 %g0 - 0.522, v = %g0 ], [- --- < carg(%g0),
carg(%g0) <= ---]]
2
2