Ask Your Question

Is it possible to get implicitly multiplied output?

asked 2010-08-22 05:39:55 +0200

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

answered 2010-08-22 11:58:12 +0200

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

answered 2010-08-27 22:13:16 +0200

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


Asked: 2010-08-22 05:39:55 +0200

Seen: 457 times

Last updated: Aug 27 '10