Trouble Translating Spherical Coordinates from Desmos 3D to Grasshopper

Hello
still errors, you must be more careful.
I just look at Desmos and it is clear that angles are not exactly what I thouht. It was hard to guess without documentation. See there

So

f(theta = 0 ) = -pi/2 (Zel Grasshopper)
f(theta = pi ) = pi/2 (Zel Grasshopper)
=>
z elevation =-pi/2 + theta

2nd and last error


(cos(0.5phi)/2sin(1.25phi)^2)
not equal to
cos(0.5
phi)/(2sin(1.25phi)^2)

cos(0.5*phi) \over {2*sin(1.25*phi)^2}

To deal with the infinity just not begin at 0 but 0.1 for example

Spherical Coordinates LD_Updatedv2.gh (17.5 KB)