Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: printing ^ and * in experessions
PostPosted: Tue Aug 31, 2021 8:06 pm 

Joined: Sat Feb 18, 2017 10:08 am
Posts: 9
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: printing ^ and * in experessions
PostPosted: Tue Aug 31, 2021 10:30 pm 

Joined: Sat Feb 18, 2017 10:08 am
Posts: 9
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!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:54 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group