Elementary functions (trigonometric, rational, \(\exp\), \(\log\), etc)

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
MathlibRatFunc.eval
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 : ℝ) : ℝ
MathlibReal.rpow
Uses 1
Statement usesComplex number

The dependency explorer needs JavaScript and its graph data.

Download the complete graph data.