I'm having a problem with numpy not returning zero when calculating cos(pi/2).
On my TI calculator this returns exactly zero, however numpy is returning an extremely small number instead.
Is there a way to fix this problem for sin/cos functions in numpy, or perhaps switch to sympy for these calculations so that it only return zero for well known reference angles that are suppose to return zero?
>>> import numpy
>>> numpy.cos(numpy.pi/2.0)
6.123233995736766e-17