print1D x ==> display((x::OutputForm)::Formatter(Format1D))
print1D(7*x^3+4*z^9)

Or you can set 1D output format.

setFormat!(Format1D)$JFriCASSupport
)set output algebra off

See

https://github.com/fricas/fricas/blob/master/src/algebra/fmtjfricas.spad

You can also get a string directly.

first lines formatExpression(7*x^3+4*z^9)$Format1D

Ralf


On 26.12.22 16:52, Grégory Vanuxem wrote:
Hello,

Is there already a way to obtain a linear representation of a
polynomial, i.e. 1D and not 2D like
7*x^3+4*z^9
instead of
              9      3
         4 z  + 7 x
ideally as a String? And vice versa? Let me specify, in Spad and not
via the interpreter.

Cheers,
__
Greg


--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/02fab499-32ae-bd38-764f-1196817cdc02%40hemmecke.org.

Reply via email to