Custom Calculator
Quick Start
Section titled “Quick Start”Get started with the expression calculator by typing mathematical expressions directly. Here are some basic operations:
Basic Arithmetic
Section titled “Basic Arithmetic”2 + 3 # Addition 510 - 4 # Subtraction 65 * 6 # Multiplication 3015 / 3 # Division 52 ^ 8 # Power 25610 % 3 # Modulus 15! # Factorial 120Using Functions
Section titled “Using Functions”sqrt(16) # Square root 4sin(pi / 2) # Sine 1cos(0) # Cosine 1log(100, 10) # Logarithm 2abs(-5) # Absolute value 5round(3.7) # Rounding 4Constants
Section titled “Constants”pi # 3.141592653589793e # 2.718281828459045tau # 6.283185307179586phi # 1.618033988749895Variables
Section titled “Variables”x = 10 # Assign variabley = 5x + y # 15x * y # 50Complex Numbers
Section titled “Complex Numbers”2 + 3i # Complex number 2 + 3i(1 + 2i) * (3 - i) # Complex multiplication 5 + 5isqrt(-1) # i5 cm + 2 inch # Unit addition 10.08 cm90 km/h to m/s # Unit conversion 25 m/s5 kg * 9.8 m/s^2 # 49 NMatrices
Section titled “Matrices”[1, 2, 3] # Vector [1, 2, 3][1, 2; 3, 4] # 2x2 Matrix [[1, 2], [3, 4]]