rabauke / harbour-babbage

Scientific calculator for Sailfish OS
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

deg <> rad function or variable #4

Closed masla84 closed 1 year ago

masla84 commented 1 year ago

Is it possible to add a option for trigonometric functions to use degree or radiants as parameter?

Thanks for this really good piece of software for SailfishOS !

rabauke commented 1 year ago

Thanks for your feedback. This is feature worth to consider in a future update. As an intermediate solution, you can switch to the scientific calculator mode and enter the "°" sign (not sure if it is available on all keyboards) to indicate degrees. For example,

sin(90°)

yields 1.

masla84 commented 1 year ago

Thank you for the info. Maybe it's worth to update the function help with that.

rabauke commented 1 year ago

Closed via d514eda57c1a55fea8e5dbecd4e4eb5c152510a3, which introduces two new functions, deg and rad for conversion between arc degree and radian.