Math.Tan as way off
See original GitHub issueArea of Cosmos - What area of Cosmos are we dealing with?
System.math
Expected Behaviour - What do you think that should happen?
The equation I put in should be equal to 72.9467445271450862
Actual Behaviour - What unexpectedly happens?
It returns the value of 1.000001
Reproduction - How did you get this error to appear?
Run 1 / Math.Tan(90 * 0.5f / 180.0f * 3.14159f);
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
Devkit
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Math.tan() - JavaScript - MDN Web Docs
The Math.tan() static method returns the tangent of a number in radians.
Read more >Tangent Function
The tangent function is a periodic function which is very important in trigonometry. The simplest way to understand the tangent function is to...
Read more >What could cause the Math.tan to not work? [duplicate]
The argument to Math.tan is an angle in radians. (This is mentioned in the Javadoc for that method.) You're giving it an angle...
Read more >Tan 90 Degrees (Exact Value & How to Find Tangent 90)
The value of tan 90 degrees is undefined. The tangent of an angle is equal to the ratio of sine and cosine of...
Read more >How to Graph Tangent (Simplified) - YouTube
Learn how to graph the tangent graph in this free math video tutorial by Mario's Math Tutoring. We go through a simple and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yep, Math.Tan is correct here,
1 / Math.Tan((90 * 0.5f / 180.0f * 3.14159f) * (Math.PI / 180))
(run) returns the expected value of72.94674177739903
, as it operates on radians, not degreesThe minor differences between mathway, cosmos and c# windows I would ignore.