Elementary functions (trigonometric, rational, \(\exp\), \(\log\), etc)
DefinitionPolynomial functions#
eval x p is the evaluation of the polynomial p at x
Polynomial.eval.{u} {R : Type u} [Semiring R] (x : R) (p : Polynomial R) : R
Sources
Uses 2 · Used by 10
DefinitionRational functions#
Evaluate a rational function p given a ring hom f from the scalar field
to the target and a value x for the variable in the target.
Fractions are reduced by clearing common denominators before evaluating:
eval id 1 ((X^2 - 1) / (X - 1)) = eval id 1 (X + 1) = 2, not 0 / 0 = 0.
RatFunc.eval.{u} {K : Type u} [Field K] {L : Type u} [Field L] (f : K →+* L) (a : L)
(p : RatFunc K) : L
Sources
Uses 6
DefinitionPower functions#
The real power function x ^ y, defined as the real part of the complex power function.
For x > 0, it is equal to exp (y log x). For x = 0, one sets 0 ^ 0=1 and 0 ^ y=0 for
y ≠ 0. For x < 0, the definition is somewhat arbitrary as it depends on the choice of a complex
determination of the logarithm. With our conventions, it is equal to exp (y log x) cos (π y).
Real.rpow (x y : ℝ) : ℝ
Sources
Uses 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.