Assumption that n is positive integer

asked 2016-04-22 11:52:02 +0100

Kofi gravatar image

I wrote

assume(n, 'integer')
assume(n>0)
assumptions()

Sage gave back

[n is integer, n > 0]

Yet the command

n.is_integer()

returned false. Also, the assumptions were not used in later computations. For example

gamma(-n)

did not return infinity.

edit retag flag offensive close merge delete

Comments

Take a look at this question: http://ask.sagemath.org/question/9465...

paulmasson gravatar imagepaulmasson ( 2016-04-23 06:29:53 +0100 )edit