Ceil
The least integer greater than or equal to x: .
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Floor and ceiling functionsMathWorldCeilingFunctionWikidataQ215193FungrimCeil✓Fungrim entrya3a253✓Wolfram LanguageCeiling!Ceil(x)the least integer , .SageMath
enumeratio_ceil(x)SymPyceiling(x)mpmathceil(x)Oscarceil(BigInt, x)Juliaenumeratio_ceil(x)Rustceil(x)Ceil(x, step)the least multiple of step at or above x.Typed signatures
| Type | Package | Applies |
|---|---|---|
(x: real | signed_infinity | ~oo, step: real?) -> real | signed_infinity | ~oo | analyticreplaces compute-engine | always |
(x: real | signed_infinity | ~oo, step: real?) -> real | signed_infinity | ~oo | compute-engine | always |
(any, any?) -> any | structuresreplaces analytic | always |
Details
- The least integer : .
- Rounds toward , not toward 0 -- so , not .
- For a non-integer x, . See Floor.
- Agrees with Floor exactly on integers.
- Threads element-wise over a list.
- A second argument rounds up to the nearest multiple of it -- the step needn't be an integer.
- The second argument is a step, a multiple to ceil to, as in Wolfram's
Ceiling[x, a]: . Round's second argument is a step too. Round breaks ties to even, as Wolfram does (see Round).
Examples
3 more kept as data, checked against the oraclesApplications #
Properties #
The imaginary part is already an integer
live ↗InOut
Known value · Wolfram MathematicalFunctionData, Ceiling
Negative rationals round up toward zero
live ↗InOut
Known value · Wolfram MathematicalFunctionData, Ceiling
Complex input: each part rounds up,
live ↗InOut
Known value · Wolfram MathematicalFunctionData, Ceiling
Possible issues #
About
| Examples | 42 |
|---|---|
| Checked against | Wolfram Language 41 agree1 differSageMath 31 agree1 unevaluated1 errorSymPy 33 agree1 unevaluatedmpmath 15 agree1 errorOscar 16 agreeJulia 26 agree4 errorRust 22 agree1 error |
| Crosswalk | WikipediaMathWorldWikidataFungrimFungrim entryWolfram LanguageSageMathSymPympmathOscarJuliaRust |
Implementation
mapped
oscarpackages/oracle/src/mappings.tsmapped
wolframpackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tsmapped
mpmathpackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.ts