Skip to content

How to let mXparser calculate trigonometric functions in degrees by default? #87

@IbrahimSwaiss

Description

@IbrahimSwaiss

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions