Function Library
Math Functions
Toolbox functions. Step functions, absolute values, and discontinuous logic.
Math & Utility Functions
These functions are fundamental building blocks in programming and mathematics. They often introduce sharp corners or jumps (discontinuities) into the graph.
The Step Family
These functions "snap" values to integers, creating a staircase-like graph.
1. Floor () & Ceil ()
- Floor (
floor(x)): Rounds down to the nearest integer.- Graph looks like a staircase going up.
- Steps are "closed" on the left, "open" on the right.
- Ceil (
ceil(x)): Rounds up to the nearest integer.- Similar staircase, but shifts values up.
f(x) = floor(x)Scroll to zoom • Drag to pan
2. Round (round(x))
- Rounds to the nearest integer.
- The "jump" happens at (e.g., at 0.5, 1.5, 2.5).
3. Sign (sign(x) or sgn(x))
- Extracts the sign of the number.
- if
- if
- if
- Shape: Two horizontal lines with a gap at 0. Looks like a disconnected "step".
Continuous Utilities
1. Absolute Value ()
- Shape: A sharp "V" shape touching the origin.
- Usage: Usually composed with other functions. e.g., creates a bouncing wave (all mountains, no valleys).
f(x) = abs(x)Scroll to zoom • Drag to pan
🧠 Advanced Guessing Strategies
Strategy 1: Spotting the "Jump"
If you see a vertical gap in the line where the function instantly changes value:
- It is a Discontinuity.
- If the segments are flat (slope 0), it's likely
floor,ceil, orround. - Check exactly where the jump happens:
- Jump at integer ()? Floor/Ceil.
- Jump at half-integer ()? Round.
Strategy 2: Sharp Turns
If the graph has a sharp corner (not smooth):
- It involves an Absolute Value or a Max/Min function.
- The most common is the V-shape of .
Strategy 3: The "On/Off" Switch
Sometimes sign(x) is used to turn parts of a function on or off.
- is actually just .
- is the Heaviside Step Function (0 for negative , 1 for positive ).
Function Guessr Wiki