First time here? Check out the FAQ!

Ask Your Question
2

assume gives false for a<oo

asked 4 years ago

curios_mind gravatar image

updated 2 years ago

tmonteil gravatar image

Hello

reset()
var('a')
assume(a<99)
print(bool(a<+Infinity)) # or print(bool(a<oo))

Why does this code print False.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 4 years ago

tmonteil gravatar image

updated 4 years ago

First, you should know that for symbolic computations, False does not mean i know this is False, but i was not able to prove it is True.

That said, for such simple comparison, Sage should indeed be able to decide, hence i consider this as a bug.

Thanks for reporting, this is now trac ticket 29938 and it is also listed on the symbolic wiki page

Preview: (hide)
link

Comments

Thanks for the clarification. I think it is an important point of view.

curios_mind gravatar imagecurios_mind ( 4 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

1 follower

Stats

Asked: 4 years ago

Seen: 345 times

Last updated: Jun 22 '20