Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

angle asin( real a )

HMC400
Advocate

angle asin( real a )

HMC400
Advocate
Advocate

Hello, I would kindly need some help on a trig function.
This : 

real sin ( angle 0 )

that's how it works :

 

Real angolo = 60
Real Numero = 20
Real Hello = ''
$Hello = $Numero *(sin( $angolo ))
Message Info $Hello

 

how do i make this work?

 

angle asin( real a )

 

thank you

 

0 Likes
Reply
Accepted solutions (1)
450 Views
3 Replies
Replies (3)

cfastNJWK6
Advisor
Advisor

This should get you started:

REAL $angle = 60.
REAL $Numero = 20.

REAL $Hello = $Numero * sin($angle)
STRING $msg = "Answer equals " + string($Hello)

MESSAGE INFO $msg
0 Likes

HMC400
Advocate
Advocate

hi sorry if i expressed myself wrong but i wanted to make this work:

 

angle asin( real a)

 

I also put a screenshot

thank you

0 Likes

cfastNJWK6
Advisor
Advisor
Accepted solution

The syntax should be exactly the same as the sin() function.  But the asin() function must have a value between -1 and 1 in the parenthesis.

 

sin(angle)

asin(Opposite/Hypotenuse)

0 Likes