Ask Your Question
0

function division

asked 11 years ago

bxdin gravatar image

I plotted the 2 following equations: (2x^3+2x) / (x^2+1) 2*x

p1 = plot((2*x^3+2*x) / (x^2+1), (x,-15,15), ymin=-15, ymax=15)
p2 = plot(2*x, (x,-15,15), ymin=-15, ymax=15, color='red') 
p0= p1+p2
show(p0)

And they both displayed the same output: I tried to do, (2x^3+2x) / (x^2+1) , but was displayed, 2*(x^3 + x)/(x^2 + 1)

How can I get 2*x to be displayed as the output?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 11 years ago

tmonteil gravatar image

Does this help ?

sage: a = (2*x^3+2*x) / (x^2+1)
sage: a.full_simplify()
2*x
Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 199 times

Last updated: Sep 28 '13