By default mXparser uses radian mode to calculate trigonometric functions.
To get the calculations in degrees I have to use *[deg] as suggested in this question #26 .
Is there a way to set the mXparser to always use degrees or radians without adding the extra *[deg].
I'm using this library to allow the user to enter formulas directly in a text box.
The user should write cos(90) and get the results in degrees or radians, as configured from setting option.
By default mXparser uses radian mode to calculate trigonometric functions.
To get the calculations in degrees I have to use *[deg] as suggested in this question #26 .
Is there a way to set the mXparser to always use degrees or radians without adding the extra *[deg].
I'm using this library to allow the user to enter formulas directly in a text box.
The user should write cos(90) and get the results in degrees or radians, as configured from setting option.