Calculator Input
Formula Used
The calculator uses this general greatest integer function:
y = a⌊bx + c⌋ + d
The symbol ⌊u⌋ means the largest integer less than or equal to u.
First compute u = bx + c. Then compute k = ⌊u⌋. The final value is y = ak + d.
Breakpoints occur when bx + c is an integer. Their x-values are x = (n - c) / b, when b is not zero.
How To Use This Calculator
- Enter a, b, c, and d for your function.
- Choose the minimum and maximum x-values.
- Set a positive step size for the table.
- Enter one x-value for direct evaluation.
- Press the calculate button.
- Review the result panel above the form.
- Download the CSV or PDF report when needed.
Example Data Table
| Function | Domain | Sample step | Expected behavior |
|---|---|---|---|
| y = ⌊x⌋ | [-3, 3] | 0.5 | Parent staircase graph |
| y = 2⌊x⌋ | [-2, 4] | 0.25 | Vertical stretch |
| y = ⌊2x + 1⌋ | [-3, 3] | 0.25 | Narrower steps |
| y = -⌊x⌋ + 3 | [-4, 4] | 0.5 | Reflected and shifted graph |
Greatest Integer Function Graph Guide
What This Tool Does
A greatest integer function returns the largest integer less than or equal to a value. It is also called the floor function. This calculator graphs y = a floor(bx + c) + d. You can change the multiplier, horizontal factor, inside shift, and vertical shift. The tool then builds a step graph, a value table, and an interval summary.
Why The Graph Has Steps
The graph stays flat between consecutive breakpoints. A breakpoint appears when bx + c becomes an integer. At that point, the floor value changes. One endpoint is closed. The other endpoint is open. This makes the graph look like a staircase. Positive b moves steps from left to right. Negative b reverses the endpoint pattern.
Practical Uses
This function appears in number theory, rounding models, coding logic, billing plans, tax brackets, ticket pricing, and grouped measurements. It is useful when a smooth input produces a fixed level output. For example, a parking fee may increase only after each full hour. A shipping rule may change only after each full kilogram.
Reading The Results
Start with the formula shown in the result panel. Then check the domain, range, y-intercept, and possible zero intervals. The table gives sampled values across the domain. The interval list gives exact step sections. Use a smaller step size for a denser table. Use a wider domain to see more jumps.
Good Input Tips
Choose a domain that contains several breakpoints. Keep the step size positive. Use decimal precision when inputs contain fractions. For teaching, set a = 1, b = 1, c = 0, and d = 0 first. This shows the parent function. Then change one coefficient at a time. The changes become easier to explain.
Exporting Work
The CSV file is useful for spreadsheets. The PDF file is useful for assignments, notes, and quick reports. Both exports use the same calculated values. Review the graph before downloading.
Accuracy Notes
The table is sampled, but the interval list is exact. Breakpoints come from algebra, not rounding. Very tiny decimal errors may still appear with floating input. Increase precision when comparing close endpoints. Use exact fractions in your notes when formal proof matters. This keeps classroom explanations cleaner and reliable.
FAQs
What is the greatest integer function?
It returns the largest integer less than or equal to the input value. For example, ⌊2.8⌋ equals 2, and ⌊-2.1⌋ equals -3.
Why does the graph look like steps?
The output stays constant across each interval. It changes only when the inside expression reaches the next integer.
What does a change?
The value a stretches, compresses, or reflects the graph vertically. Negative a flips the step values across the horizontal direction.
What does b change?
The value b changes the step width. Larger absolute values make steps narrower. Negative b reverses the direction of the endpoint pattern.
What does c change?
The value c shifts the inside expression. It moves breakpoints left or right depending on the sign and value of b.
What does d change?
The value d shifts every output value up or down. It does not change breakpoint positions.
Can this calculator find intercepts?
Yes. It reports the y-intercept when zero is inside the selected domain. It also finds exact zero intervals when they exist.
Why is the table sampled?
The table uses your chosen step size. Smaller steps show more rows. The interval summary still uses exact breakpoint logic.