1

The kotlin.math.sin(Double) result is not same with the windows scientific calculator result. Im still a beginner in kotlin Android Studio. Please help.

Below are the screenshots of my problem.

Windows Scientific calculator Output: 0.17364817766693034885171662676931

Android Studio (Kotlin) Output: -0.5440211108893698

Thank you for your help.

Io-oI
  • 2,514
  • 3
  • 22
  • 29
Chet
  • 31
  • 1
  • 2
  • Duplicate of [Unusual Math with incorrect results?](https://stackoverflow.com/questions/8691800/unusual-math-with-incorrect-results) - Note the language is irrelevant, the problem is the same and is solved the same way – Nick is tired Jan 26 '20 at 03:35

1 Answers1

1

Kotlin is expecting radians and calculator is expecting degrees.

Buddy
  • 10,874
  • 5
  • 41
  • 58