Read-only forum archive

printing ^ and * in experessions

printing ^ and * in experessions

jcapco · Tue Aug 31, 2021 8:06 pm

Hi,

I have a question and I couldn't find the answer to my question in the documentation. I would like to be able to print expresions in the usual manner such that I could copy them and use them in other computer algebra systems. For instance if
Code:
poly f = x^2+2*x*y

and if I type
Code:
print(f)

then I get the shorthand x2+2xy, while I would like to sometimes have x^2+2*x*y so that I can just copy this expression and use it in some other computer algebra system that understand such expression. Is there a way to do this?

Thanks in advance!

Re: printing ^ and * in experessions

jcapco · Tue Aug 31, 2021 10:30 pm

I will just answer my own question... I was looking at the wrong part of the documentation. I was hoping that I could force this in the print command. But apparently I can just type short=0 and this solves the problem!