AngouriMath

Navigation

← Back to list of members

PiecewiseOver​(AngouriMath.​Entity,​AngouriMath.​Entity.​Variable,​AngouriMath.​Entity,​AngouriMath.​Entity)

 Method (no overloads)

Summary

expr over [from, to] as the piecewise it is
there, with each floor and ceiling of x replaced by its value on each piece: the pieces
partition the range, their ends are exact, and an end belongs to the piece whose value it has, which the
closedness of each piece's interval says. floor(x^2) over [0, 2] is 0 for
x in [0; 1), 1 for x in [1; sqrt(2)), 2 for x in [sqrt(2); sqrt(3)),
3 for x in [sqrt(3); 2), and 4 for x = 2.

Remarks

The ends are the points where a floor's or ceiling's argument is a whole number, from the solver; that
there are no others is proved, by intervals that hold every value the argument takes between two ends.
Where that cannot be proved -- a root the solver does not give, an argument with a pole in the range, a
floor inside another, or any other jump in x -- the answer is null,
and never a partition with a piece missing.
https://github.com/asc-community/AngouriMath/issues/1807

Parameter "expr"

The expression, with floors and ceilings of x in it

Parameter "x"

The variable

Parameter "from"

The start of the range, a finite real number

Parameter "to"

The end of the range, a finite real number above from

Returns

The piecewise, or null where its pieces cannot be proved to be all of them

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 4970 pages online