Closed Editst closed 2 years ago
Hi, I'm not sure if this is a bug, but it's very confusing.
When I enter int theta and phi, it gives zeros.
import quaternionic quaternionic.array.from_spherical_coordinates(1, 2) # --> quaternionic.array([0., 0., 0., 0.])
Only when I explicitly enter float theta and phi, it gives the correct result.
import quaternionic quaternionic.array.from_spherical_coordinates(1., 2.) # --> quaternionic.array([ 0.47415988, -0.40342268, 0.25903472, 0.73846026])
This is a bug. Thanks for reporting it.
Hi, I'm not sure if this is a bug, but it's very confusing.
When I enter int theta and phi, it gives zeros.
Only when I explicitly enter float theta and phi, it gives the correct result.