PiecewisePolynomial

@PerformancePitfall(message = findPiece method of resulting piecewise is slow)
fun <T : Comparable<T>> PiecewisePolynomial(pieces: Collection<Pair<ClosedRange<T>, Polynomial<T>>>): PiecewisePolynomial<T>

A generic piecewise without constraints on how pieces are placed

fun <T : Comparable<T>> PiecewisePolynomial(startingPoint: T, builder: PiecewiseBuilder<T>.() -> Unit): PiecewisePolynomial<T>

A builder for PiecewisePolynomial