Suppose we have a linear function fx we are given two


Suppose we have a linear function f(X). We are given two points on the line and their values: a, f (a), b, and f(b). Now we need to use linear interpolation to compute the value of a new point f(c). Write a program that first reads in a, f(a), b, f(b), and a new point c. Calculate and print the value of f(c). Use double type for all the variables.

Linear equation formula: f(c) = f (a) + (c - a) * [f (b) - f(a)] /(b-a)

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Suppose we have a linear function fx we are given two
Reference No:- TGS0599813

Expected delivery within 24 Hours