Ask Your Question

Strange result of a relational expression

asked 2012-02-21 03:43:00 +0100

seflyer gravatar image

updated 2012-02-21 11:52:38 +0100

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-21 05:27:05 +0100

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 09:12:10 +0100 )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-26 06:25:21 +0100 )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-21 03:43:00 +0100

Seen: 319 times

Last updated: Feb 21 '12