MyMath and Trig

toe

Member
Licensed User
Longtime User
Hi, just trying out the trig function and am not getting the correct result, the calculator has the desired result, this is code i copied from vb2008, i am hoping to use most of my vb code.

b7mm.jpg


regrads
toe
 

MLDev

Active Member
Licensed User
Longtime User
You're using cos instead of cosh on your calculator. I'm getting the correct results of 2.9299942953564550419770514580672 on my calculator.
 
Upvote 0

toe

Member
Licensed User
Longtime User
You're using cos instead of cosh on your calculator. I'm getting the correct results of 2.9299942953564550419770514580672 on my calculator.

I tried cos:
B4X:
Parsing code.                           0.00
Compiling code.                         Error
Error compiling program.
Error description: Unknown member: cos
Occurred on line: 66
lLength = lLength / MyMath.Cos(pPitch * (Pi / 180))
Word: cos

Do i need a differnt lybrary instead of "MyMath" perhaps?
 
Upvote 0
Top