Darkempire78 / OpenCalc

A simple and beautiful calculator for Android
GNU General Public License v3.0
740 stars 83 forks source link

Inverse trigonometric functions result in NaN #119

Closed toschoch closed 1 year ago

toschoch commented 1 year ago

Version v2.0.0-beta Observed ind DEG mode:

arcsin(0.5) -> NaN but is expected to yield 30 arccos(1) -> NaN should be 0 arctan(0.25) -> NaN

julianfairfax commented 1 year ago

This is important

Darkempire78 commented 1 year ago

This is important

I'm not saying otherwise, but I don't know what it's due to...

julianfairfax commented 1 year ago

Me neither. It appears this app was made in Kotlin. Does this help? https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/acos.html

Joppla commented 1 year ago

Hi, will this bug be solved soon?

Darkempire78 commented 1 year ago

Hi, will this bug be solved soon?

Yes, I will try to fix it during the weekend

Joppla commented 1 year ago

Thanks!