First time here? Check out the FAQ!

Ask Your Question
0

Strange result of a relational expression

asked 13 years ago

seflyer gravatar image

updated 13 years ago

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?


forget()
assume(x >= 0)
expr = sin(x) <= x
print(bool(expr))

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 13 years ago

parzan gravatar image

See here: http://ask.sagemath.org/question/1144... and here: http://ask.sagemath.org/question/605/...

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.

Preview: (hide)
link

Comments

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 ( 13 years ago )

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 ( 13 years ago )

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: 13 years ago

Seen: 413 times

Last updated: Feb 21 '12