Ask Your Question
1

Is it possible to get implicitly multiplied output?

asked 2010-08-21 22:39:55 -0500

Mitesh Patel gravatar image

With implicit_multiplication(True), we can enter expressions using spaces instead of * to separate multiplied subexpressions:

sage: var('x, y, z') sage: implicit_multiplication(True) sage: 3 x^4 y + 2 z sin(x z 3 y) - 3 y^2 3*x^4*y - 3*y^2 + 2*z*sin(3*x*y*z)

This works similarly for polynomials.

Is it possible to set (or implement practically) an option that automatically postparses output to use implicit multiplication? For example,

sage: R.<a,b,c> = QQ[]; R Multivariate Polynomial Ring in a, b, c over Rational Field sage: implicit_multiplication_output(True) sage: R.random_element() 1/7 a b - 1/4 a c - c^2 + c

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2010-08-22 04:58:12 -0500

William Stein gravatar image

I think what you want is not implemented. It would be good to implement, though.

edit flag offensive delete link more
1

answered 2010-08-27 15:13:16 -0500

Mitesh Patel gravatar image

I've opened Sage trac ticket #9829 for implementing this.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2010-08-21 22:39:55 -0500

Seen: 143 times

Last updated: Aug 27 '10