First time here? Check out the FAQ!

Ask Your Question
0

Why doesn't Sage evaluate to zero on its own found roots?

asked 10 years ago

Phoenix gravatar image

updated 10 years ago

calc314 gravatar image
g(x) = x^4 - 6*x^2 - 2*sqrt(5)*x + 2*x + 1/2*sqrt(5) - 1/2

g(x).solve(x)

This gave,

[x == -1/2*sqrt(-2*sqrt(5) + 10) - 1, x == 1/2*sqrt(-2*sqrt(5) + 10) - 1, x == -1/2*sqrt(2*sqrt(5) + 6) + 1, x == 1/2*sqrt(2*sqrt(5) + 6) + 1]

But then g(1/2*sqrt(-2*sqrt(5) + 10) -1 ).simplify() is not zero! (same for the other roots!)

What is going on!?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

calc314 gravatar image

If you use g(-1/2*sqrt(-2*sqrt(5) + 10) - 1).simplify_full(), you do get 0. When there are lots of square roots in an expression, Sage (actually, Maxima) requires that you do simplify_full to simplify those effectively.

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

1 follower

Stats

Asked: 10 years ago

Seen: 276 times

Last updated: Jan 21 '15