Ask Your Question
0

function division

asked 2013-09-28 09:10:14 +0100

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-09-28 10:18:52 +0100

tmonteil gravatar image

Does this help ?

sage: a = (2*x^3+2*x) / (x^2+1)
sage: a.full_simplify()
2*x
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

Stats

Asked: 2013-09-28 09:10:14 +0100

Seen: 184 times

Last updated: Sep 28 '13