Calculus bug in the latest 7.2.beta: sin(pi*x) returns 0 whenever x > 0

72 views
Skip to first unread message

Eric Gourgoulhon

unread,
Apr 17, 2016, 11:58:07 AM4/17/16
to sage-devel
Hi,

In Sage 7.2.beta4:

sage: assume(x>0)
sage: sin(pi*x)
0

As far as I can tell, this bug has been introduced in Sage 7.2.beta0. Maybe by ticket #20134 (upgrade to pynac-0.6.4) ?

Best wishes,

Eric.

Ralf Stephan

unread,
Apr 17, 2016, 12:58:51 PM4/17/16
to sage-devel
Many thanks for reporting but who will open the ticket?

Volker Braun

unread,
Apr 17, 2016, 3:05:46 PM4/17/16
to sage-devel
It seems that the assumption (wrongly) thinks that x is integer:

sage: assume(x>0)
sage: sin(pi*x)
0
sage: cos(pi*x)
(-1)^x

Ralf Stephan

unread,
Apr 18, 2016, 2:31:02 AM4/18/16
to sage-devel
On Sunday, April 17, 2016 at 9:05:46 PM UTC+2, Volker Braun wrote:
It seems that the assumption (wrongly) thinks that x is integer:

Eric Gourgoulhon

unread,
Apr 18, 2016, 3:58:33 AM4/18/16
to sage-devel
Thanks !

Eric.

Reply all
Reply to author
Forward
0 new messages