But the original *does* evaluate at positive PI.
print(f(pi))
# 0
This is a bug.
On Wednesday, April 3, 2019 at 2:47:31 PM UTC-4, brando...@gmail.com wrote:
>
> The simplest example:
>
> f = piecewise([[[-pi-1, -pi/2], 0], [(-pi/2,pi/2), 1], [[pi/2, pi+1], 0]])
> print(f(-pi))
>
> which gives th
The simplest example:
f = piecewise([[[-pi-1, -pi/2], 0], [(-pi/2,pi/2), 1], [[pi/2, pi+1], 0]])
print(f(-pi))
which gives the traceback:
TypeError Traceback (most recent call last)
in ()
> 1 f(-pi)
/Applications/SageMath-8.7.app/Contents/Resources/sage/loca