calc
The calc command is a built-in calculator for evaluating arithmetic expressions.
Syntax
calc [expression]
Usage
The calculator supports:
- Basic operations: +, -, *, /, ^ (exponentiation).
- Functions: sqrt, sin, cos, tan.
- Grouping: (...) for operator precedence.
Example
calc ((4 - 2^3 + 1) * -sqrt(3*3+4*4)) / 2
7.5.