-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Proposal for Comprehensive Mathematical Module in Amber #451
Labels
enhancement
New feature or request
Comments
Ph0enixKM
changed the title
Proposal for Comprehensive Mathematical Module in Amber
✨ Proposal for Comprehensive Mathematical Module in Amber
Jun 16, 2024
(perhaps exp, log, sin/cos, tan are not necessary) |
You're right @FedericoCeratto. That's not the most important thing right now |
As today we have some of them, it is enough? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We could start with a mininal version of such library and then we could extend it with other functions. Some of the most important ones could be the following:
Rounding
ceil(x: Num): Num
- rounds up to the nearest integerfloor(x: Num): Num
- rounds down to the nearestround(x: Num): Num
- rounds to the nearest integerAbsolute and sign
abs(x: Num): Num
- absolute valuesign(x: Num): Num
- sign function, returns -1, 0, or 1 depending on the sign of xMin / Max
min(a: Num, b: Num): Num
max(a: Num, b: Num): Num
Optional: Power, root, exponential, logarithms and trigonometric
pow(base: Num, exponent: Num): Num
- power functionsqrt(x: Num): Num
- square rootexp(x: Num): Num
- exponential functionlog(x: Num): Num
- natural logarithmlog10(x: Num): Num
- base-10 logarithmsin(x: Num): Num
- sinecos(x: Num): Num
- cosinetan(x: Num): Num
- tangentThe text was updated successfully, but these errors were encountered: