Is it possible to get implicitly multiplied output?

i like this post (click again to cancel)
1
i dont like this post (click again to cancel)

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

asked Aug 22 '10

Mitesh Patel gravatar image Mitesh Patel
253 2 9

2 Answers:

i like this answer (click again to cancel)
1
i dont like this answer (click again to cancel) Mitesh Patel has selected this answer as correct

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

link

posted Aug 22 '10

William Stein gravatar image William Stein
1195 5 17 40
http://wstein.org/
i like this answer (click again to cancel)
1
i dont like this answer (click again to cancel)

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

link

posted Aug 27 '10

Mitesh Patel gravatar image Mitesh Patel
253 2 9

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

1 follower

Tags:

Stats:

Asked: Aug 22 '10

Seen: 84 times

Last updated: Aug 27 '10

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.