You could maybe try to implement your own custom java action and do the trigonometric calculations using Java.
You can setup eclipse like this
Specific java references for using trigonometric functions could be found here
Guess you want to use this module in your Mx 10 project?
What you can do is
Or drop me a mail @ email@example.com and I'll send you the converted module package. ;-)
One side note: Cannot give 100% guarantee the JAVA actions are 100% Mx10 proof. My guestimation is that they will.