integrate

fun <T, A : Field<T>, NumericAlgebra<T>> Polynomial<T>.integrate(algebra: A): Polynomial<T>

Create a polynomial witch represents indefinite integral version of this polynomial


fun <T : Comparable<T>> Polynomial<T>.integrate(algebra: Field<T>, range: ClosedRange<T>): T

Compute a definite integral of a given polynomial in a range