I'm still a bit stumped. If I open up maxima, then:
algebraic:true;
tellrat(h^4);
ratexpand((1+h^3)^5);
produces 5h^3+1 which is correct. However, if in sage:
h = maxima('h')
maxima.algebraic = true
maxima.tellrat(h^4)
maxima.ratexpand((1+h^3)^5)
produces a great long expression filled with powers of h^4 and above. So
clearly I'm not parsing my maxima commands correctly.
On Wednesday, 15 January 2014 15:04:45 UTC+11, Alasdair wrote:
>
> I think this was asked a few years ago... anyway, I'm doing some
> computations for which Maxima's "tellrat(X)", which basically means
> substitute 0 for X wherever it occurs in a rational expression, is useful,
> It stops expressions growing huge by simply and automatically making vast
> unnecessary chunks of them zero. However, if I want to do this in Sage I
> either have to start a Maxima sub-shell, or use maxima("do this"), or
> maxima.do_this(), and move expressions to and fro between Sage and Maxima.
> This is all do-able, but also a pain. Is there any way of limiting
> expressions in Sage (for example an expansion of nested Taylor polynomials)
> by automatically making all powers above a certain value zero?
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.