I've created an app that uses the maths function (i'm a first time user). The two functions i've created are to convert from x to y and then the reverse of y to x.
answer:=math.ArcSin( (answer-1)/(answer+1) );
These functions are the reverse of each other and technically, if you were to use them in xty(ytox(10,1,1),1,1) should return the answer 10 but when centerpoint and rad become larger in value, there is an increasing differnece between what i should get and what i do. ie ytox(10,100000,100000)=4 and xtoy(4,100000,100000)=21? Obviously they are approximately opposite but deviate at large values but i've looked at this 100 times and i can't see the error. If anything jumps out as obviously wrong, could you please drop me a message.
Thanks in advance
0 · ·