Transcript Slide 1
Linear Interpolation Function
How do we find the Needle
Point Gap (in cm) for a
Peak Voltage of 67.3 kV?
Note that as the voltage
increases, the gap length
How do we find the Temperature of Air at 7,800 feet?
Note that as the altitude increases (+), the temperature
We use a technique called “linear interpolation”,
in that we assume that the change from one
Table entry to the next is linear.
For a solution, we require five (5) input values:
1. The given lower value
2. The given upper value
3. The “find” lower value
4. The “find” upper value
5. The given table entry value
Always be consistent with upper and lower values, so that whether the
entries are ascending or descending, the correct sign will be maintained.
The function program “interp()”
Now a Function Program can be written to take the “five given values” from
the Table as arguments, and return the interpolated value.
Knowing the “ratio” relationship,
a x a1
Develop the equations needed to calculate the interpolated value, and write
the function program to return that value as the output of the function.
Use the examples given to test your function, and solve the assignment.
The Needle Point Gap at 67.3 kV = 8.27 cm.
The standard atmospheric temperature at 7,800 ft = 31.2 oF.