Function astro::interpol::five_values
[−]
[src]
pub fn five_values(y1: f64, y2: f64, y3: f64, y4: f64, y5: f64, n: f64) -> f64
Interpolates an intermediate value of a function from five of it's given values
Returns
interpol_val
: Intermediate value of the function
Arguments
y1
: Value 1 of the functiony2
: Value 2 of the functiony3
: Value 3 of the functiony4
: Value 4 of the functiony5
: Value 5 of the functionn
: Interpolating factor, measured from the central valuey3
, positively towardsy4