I have an equation to be calculated in vb that requires me to calculate the acos of a value. There doesn't seem to appear to be an acos function in vb. I heard you can do some trick with atan. Does anyone know that trick or have any suggestions?
There is a full list in Excel VBA Help; enter Math in the Search and look at the Math Functions and Derived Math Functions entries.
One caveat: I have seen posts here that suggest they may not all work as advertised, so check them out. I do have enough knowledge to check them out but not the time right now.
..the atn() function is the arc tangent function, which returns the value in radians not degrees. Therefore..depending on if you needed it in degrees you can do what he did above....
degrees: answer in radians * 180/pi
pi which can be derived from 4*atn(1)
the above way is probably easier...but in vb you dont have those...just showing another option
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.