Skip to main content

five_values

Function five_values 

Source
pub fn five_values(y1: f64, y2: f64, y3: f64, y4: f64, y5: f64, n: f64) -> f64
Expand description

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 function
  • y2: Value 2 of the function
  • y3: Value 3 of the function
  • y4: Value 4 of the function
  • y5: Value 5 of the function
  • n : Interpolating factor, measured from the central value y3, positively towards y4