How to add arccos to a formula in property set definitions?

How to add arccos to a formula in property set definitions?

Anonymous
Not applicable
867 Views
2 Replies
Message 1 of 3

How to add arccos to a formula in property set definitions?

Anonymous
Not applicable

Hi,

 

I can't see the acos function when adding a formula parameter in property set definitions. Isn't it available?

 

Using AutoCAD MEP 2015

 

Thanks

0 Likes
Accepted solutions (1)
868 Views
2 Replies
Replies (2)
Message 2 of 3

Keith.Brown
Advisor
Advisor
Accepted solution

No it is not.  

 

VBScript does not have an arccos or arcsin function.  It does have an arctan function though so you need to express it in terms of arctan.

 

    ArcSin = Atn(X / Sqr(-X * X + 1))

 

    ArcCos = Atn(-X / Sqr(-X * X + 1)) + 2 * Atn(1)

 

 

I believe that my formulas are correct but you might want to double check.

 

math functions.jpg

Message 3 of 3

Anonymous
Not applicable
Thanks a lot! That does the trick
0 Likes