I have a formula to calculate the location off an unknown point with Trigonometry. (2 other values come from a distance sensor)

For this formula, I need to have an Angle.

I have this now: Cos A = 0.6819

If I enter this in my calculator (shift cos) I get ~47 degrees, and that is correct.

How do I do this in vvvv with the Expr (val) node?? So I can finish my calculation, and generate the X,Y posistion off the unknwn object.

I attacthed the first part off my calculation, hope some one can help, trying to figure this out for some time now…

inverted Cos.v4p (5.8 kB)