amber-lang / amber

💎 Amber the programming language compiled to Bash
https://amber-lang.com
GNU General Public License v3.0
3.81k stars 81 forks source link

✨ Proposal for Comprehensive Mathematical Module in Amber #451

Open Ph0enixKM opened 3 months ago

Ph0enixKM commented 3 months ago

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

Absolute and sign

Min / Max

Optional: Power, root, exponential, logarithms and trigonometric

These can be easily evaluated using bc with flag -l

FedericoCeratto commented 2 months ago

(perhaps exp, log, sin/cos, tan are not necessary)

Ph0enixKM commented 2 months ago

You're right @FedericoCeratto. That's not the most important thing right now

Mte90 commented 4 days ago

As today we have some of them, it is enough?