Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

[RESOLVED] Math problem..

$
0
0
In my program I have a calc who's values are

a = math.sin(150 / 250)

which gives me a value of 0.564 (3 places) in radians. When i convert that to degrees ( 180 / math.PI ), I have a value of 32.351 degrees.

Doing the same calculation on my calculator I get an angle in degrees of 36.869, which seems to be the correct angle. Why do I have a discrepancy in the code's calculation? Am i doing something wrong? :confused:

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>