Fracp1
Fracp1 is a parametric generalization of the fractional-part operator used in mathematics to extract the remainder of a real number when divided by a positive parameter p1. It yields a value in the interval [0, p1), and for p1 = 1 it reduces to the ordinary fractional part.
Definition: for a real input x and a positive parameter p1, fracp1(x) is defined as fracp1(x) = x
Properties: fracp1 is defined on all real x; its range is [0, p1); it is periodic with
Examples: with x = 3.7 and p1 = 1, fracp1(3.7) = 0.7. With x = 3.7 and p1 = 0.5, fracp1(3.7)
Applications: fracp1 can be used for phase wrapping in digital signal processing, tiling and texture generation
History and notation: fracp1 is a generalized construct found in some instructional materials and software libraries
- torus