Hello Guest it is April 19, 2024, 08:26:57 PM

Author Topic: converting sine function, radians to degrees/solving triangle  (Read 2197 times)

0 Members and 1 Guest are viewing this topic.

Offline Fleck

*
  •  31 31
    • View Profile
    • fleckguitar.com
converting sine function, radians to degrees/solving triangle
« on: August 28, 2015, 12:37:15 AM »
Trying to come up with working code to find length of opposite side of triangle. Works on calculator just cant get code correct.

What I have that is not working:

 opposite = adjacent * (((Sin(angleOpposite) * Atn(X / Sqr(-X * X + 1) / (Sin(angleAdjacent)* Atn(X / Sqr(-X * X + 1)))

Any help is appreciated
this is my router, there are many like it but this one is mine

Offline Fleck

*
  •  31 31
    • View Profile
    • fleckguitar.com
Re: converting sine function, radians to degrees/solving triangle
« Reply #1 on: August 28, 2015, 02:03:56 AM »
correction

 opposite = adjacent * (((Sin(angleOpposite) *180 / (4 * Atn(1) / (Sin(angleAdjacent)* 180 / (4 * Atn(1))))
this is my router, there are many like it but this one is mine

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: converting sine function, radians to degrees/solving triangle
« Reply #2 on: August 28, 2015, 04:11:05 AM »
I have no idea IF your formula is correct BUT this makes the script run.  Youshould be able to work it out from there.

angleAdjacent = 90
angleOpposite = 120



opposite2 = (angleadjacent * Sin(angleOpposite) *180) / (4 * Atn(1)) / (Sin(angleAdjacent)* 180) / (4 * Atn(1))


MsgBox ("" & opposite2)