Advanced Calculator (Expression-based)
VARIABLES (case-insensitive):
A, B, C, D, E
- Optional inputs
- Unconnected inputs default to 0
- Accepts INT / FLOAT / STRING (auto-cast)
--------------------------------------------------
EXPRESSION RULES:
- Multiline expressions supported
- Newlines and extra whitespace are removed automatically
- Variables and function names are case-insensitive
--------------------------------------------------
AVAILABLE FUNCTIONS:
Basic Math:
ceil(x) : round up
floor(x) : round down
round(x) : round to nearest
abs(x) : absolute value
Min / Max:
min(a, b, ...)
max(a, b, ...)
Power / Roots:
pow(a, b) : a raised to power b
sqrt(x) : square root
Fractional:
frac(x) : fractional part of x
defined as x - floor(x)
works correctly for negatives
--------------------------------------------------
ERROR HANDLING:
- Invalid expressions return 0
- Unconnected inputs are treated as 0
- Safe evaluation (no system or file access)
By vantagewithai·Created 7 months ago·Updated 2 months ago· 22