-
Run the application with the expression you wish to parse as the first argument, e.g.:
go run main.go "1 + 1"
PI
- πTAU
- τ (2π)E
- Euler's numberPHI
- φ Golden ratioLN2
- Natural logarithm of 2LN10
- Natural logarithm of 10
abs(x)
- Absolute value ofx
sin(x)
- Sine value ofx
cos(x)
- Cosine value ofx
tan(x)
- Tangent value ofx
sqrt(x)
- Square rootround(x)
- Roundx
to the nearest integer valuefloor(x)
- Roundx
down to the nearest integer valueceil(x)
- Roundx
up to the nearest integer valuemin(x, y)
- Get the smallest of the values providedmax(x, y)
- Get the largest of the values provided