Ask Your Question

Strange result of a relational expression

asked 2012-02-20 20:43:00 -0500

seflyer gravatar image

updated 2012-02-21 04:52:38 -0500

DSM gravatar image

Tried the following in sage. The answer is False, which is apparently incorrect. Anyone ever encountered this before? Any idea on what happened here?

assume(x >= 0)
expr = sin(x) <= x

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-02-20 22:27:05 -0500

parzan gravatar image

See here: and here:

Quoting from DSM's answer:

"False" doesn't necessarily mean false, it might only mean "Sage couldn't figure out how to prove it was true.

edit flag offensive delete link more


To elaborate, it is not possible to always prove something is false or true on a computer (at least not in the age of the universe...). Different programs might return different things in different logics, but Sage sticks with Python and returns only True or False to booleans.

kcrisman gravatar imagekcrisman ( 2012-02-21 02:12:10 -0500 )edit

I kind of get it, still I would say, whatever the evaluation algorithm is, a bug just showed itself and it might not be a good choice just treat it as something inevitable.

seflyer gravatar imageseflyer ( 2012-02-25 23:25:21 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2012-02-20 20:43:00 -0500

Seen: 78 times

Last updated: Feb 21 '12