DEG uses degrees: sin(30) = 0.5. RAD uses radians: sin(pi/6) ≈ 0.5. Explicit angle units override this choice.
Find a task
No matching tools. Try a different word.
Bisection · real numbers · 64 working digits. Tolerances: xAbs = xRel = fRel = 1e−12.
Syntax & example
Uses Calculator arithmetic, angle and word settings. Definitions stay in this page unless needed by saved history.
No definitions yet. Define rate = 0.21, then total(netAmount) = netAmount*(1+rate).
Names, dependencies & examples
Names are case-sensitive ASCII letters, then letters, digits or underscores; up to 32 characters. Built-in functions, units, constants, Ans and M are reserved. Define a name before referring to it. Cycles and recursion are refused; a rejected edit keeps the previous definition.
Variables: rate = .21. Functions: name total, parameter netAmount, formula netAmount*(1+rate). Calculate total(100) for 121. Functions have 1–8 unique parameters. Ans/M are not allowed in definition formulas: save an explicit named value instead.
Bit operations & word wrapping
Ordinary +, −, *, / and ^ are mathematical operations: 127+1 is 128. Use word(x) to wrap explicitly; wadd(a,b), wsub(a,b), wmul(a,b) wrap their arithmetic result to the chosen width. Signed words use two’s complement. Overflow and lost bits are reported.
Bit functions require exact integers in the selected range or explicitly constructed words. Shift counts must be integers from 0 to one less than the width. word(255,8,signed) is −1 with pattern 0xFF; lshr(-2,1) in 8 signed is 127, while ashr(-2,1) is −1. ^ remains power; % remains percentage.
Base syntax & examples
0b101.01 = 21/4, 0xA.F = 175/16. Repeating digits use parentheses: decimal 0.1 converts to 0b0.0(0011). The selected source base reads free digits such as FF; a prefix must agree with it. Copied output includes the prefix.
Convert result retains the evaluated value and its approximation status; it does not reinterpret display digits in From.
Saved inputs and variables
Result
Rounded display
Working digits
Up to 64 working digits; these are not guaranteed correct or exact.
Steps for your calculation
Last operations shown. Open Step details for every available step.
Step details
Powers & logsTrigonometryMore functions
History
Off by default. Up to 50 calculations, for 30 days each, within 1 MiB. Datasets, matrices, methods and only needed variables/settings are saved with each calculation. Older open versions need a reload before Clear can affect all history versions.
No calculations yet.
Choose the comparison you need
Sign uses one value and returns −1, 0 or 1. Minimum and maximum use a list of 2–50 values, entered one per line. Clamp uses one value and an ordered lower and upper bound.
Clamping returns the lower bound below the interval, the upper bound above it, and the original value within it. Compatible quantities can be compared; incompatible dimensions fail rather than being silently converted to plain numbers.
Worked example: clamp 12 to [0,10]
The interval has lower bound 0 and upper bound 10. Since 12 exceeds 10, the clamped result is 10. A value of 4 would stay 4.
For the list 4, −2, 9, the minimum is −2 and the maximum is 9. Sign(0) is 0.
Load example fills the form without calculating. Choose its primary action to work it out.
The method and worked example here are original. Sources describe the underlying mathematics or notation; calculation choices and limits are in the precision and syntax guide.