Skip to main content

Module derivative

Module derivative 

Source
Expand description

Partial-derivative recipes shared by Formula rows. They use Ops on the original arguments and result. Slope presents a selected partial as another formula. A masked case keeps discarded intermediate values finite before selecting the slope.

Structs§

Slope
K’s partial derivative in its argument SIDE, as a function object at f32 and f64: of K’s argument and result where K takes one argument, and of its two arguments and its result where it takes two. Each item runs K’s recipe on floats ([Floats]), which see no constant. A slope that is NaN where no argument is, such as Pow’s in y at an infinite x and a negative y, is its value, as Subtract gives NaN for ∞ - ∞. A slope in an argument that has none, such as Polygamma’s in its order, is NaN.

Functions§

power_slope
x^y’s slope in x, y x^(y-1), where Pow or RealPow gave r: