Calculate and print the value of f

Assignment Help Electrical Engineering
Reference no: EM13261097

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)

Reference no: EM13261097

Questions Cloud

Which organizational officer is directly responsible : Which organizational officer is directly responsible for managing a company's cash and funds invested in various marketable securities?
What is the height of the image produced by the lens : A 2.3cm high object is located 30cm from a diverging lens, whose focal length is 14cm. What is the height of the image produced by the lens
Work full time at a local accounting firm : Take a summer class which will cost $800 and work half time making $1,100 per month.
Determine the voltage at the receiver in mv and dbuv : A 50 ohm source is connected to a 50 ohm receiver using 30 ft of RG58U coaxial cable. If the source output is 100 MHz and -30dBm, determine the voltage at the receiver in mV and dBuV [6.05 mV , 75.6 dBuV
Calculate and print the value of f : 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).
Find the force on the loop : We move a square loop of wire 2.1 cm on a side into a region of uniform magnetic field of 1.0 T with the plane of the loop, find the force on the loop as it just enters the magnetic field region
Which does almost all of the photocopying for the sales : Bullock's Company's copy department, which does almost all of the photocopying for the sales department and the administrative department, budgets the following costs for the year, based on the expected activity of 5,000,000 copies.
What is the peak value of potential difference across coil : A 2.20 H coil with a resistance of 2.18×10^2 ohms is in series with a 1.29×10^3 ohms resistor. What is the peak value of the potential difference across the coil
When did you receive you undergraduate degree : When did you receive you undergraduate degree? What was your area of stud - where do you see yourself in five years?

Reviews

Write a Review

Electrical Engineering Questions & Answers

  What is the period of revolution of the alpha particles

A cyclotron used to accelerate alpha [articles (m=6.55 x 10^-27kg, q=3.2x10^19C) has a radius pf .50, and a magnetic field of 1.8T (a)what is the period of revolution of the alpha particles (b)what is their kinetic energy

  Calculate amount of substance transferred into the patient

If a patient is on a drip with a drip rate of f(t) = 150e^0.0167t mL/hr, calculate the amount of substance transferred into the patient over a time period of 10 hours, use time intervals of 1 hour. Compare

  What is the average velocity in each section of pipe

Seawater with a specific weight of 64.0 lbs/ft^3 is at a level of 4 feet above the centerline of the exit pipe. The tank is closed at the top and there is a pressure of 1 psig above the seawater. What is the velocity at the end of the pipe

  Determine e0 and write an expression for e at time t

A y polarized UPW motion in + x direction in free space has a maximum value of 20 (V/m) at a point x=1.5 (m) with the next adjacent minimum at x=2.75 (m) at time t=0 Obtain the wavelength and the frequency of the wave.

  Determine the total current in each line of 3-phase motor

Three -phase motor is connected to a three-phase power source that has an abc phase sequence. the first load is a wye-connected, three-phase motor withdrawing a line current of 20A at a 0.8 lagging power factor.

  Calculate the value required for the resistor labeled r

On a breadboards, hook up an IR LED to provide an infrared light source for signaling the phototransistor as shown in Figure 2 below. Use a pushbutton switch to turn the IR LED on and off.

  Determine value of c to ensure a unit energy constellation

S = {c(k + jl) | k = 3, 1, 1, 3 and l = 3, 1, 1, 3 and j = square root of -1, where c is a constant. Determine the value of c to ensure a unit energy constellation. Sketch this constellation. Find d^2 min and label the constellation points with bi..

  Calculate the energy generated by the electric machine

a. The mass of an electric car is 900 kg including the passengers. A single motor mounted on the front wheels drives the car, and the radius of the wheel is 0.3 m. The car is going downhill at a speed of 50 km/hr, and the slope of the hill is 30 d..

  What is the actual value of the irr on the incremental cost

a) Construct a choice table for interest rates from 0% to 100%. b) Which roof should you choose if your MARR is 12% what is the actual value of the IRR on the incremental cost?

  What is rms voltage of source in a single loop series

3) What is the RMS voltage of the source in a single loop series circuit if Irms = 1A-30° and Ztotal = 100 65° 4) What is the power dissipated by an electric heater with a resistance of 20? drawing a current waveform of i(t) = 10 sin(60t) Amps

  Find the ratio of the effective density of states

n the conduction band of a semiconductor, it has a lower valley at the center of the Bril- louin zone, and six upper valleys at the zone boundary along [100]. If the effective mass for the lower valley is 0.1m0 and that for the upper valleys

  Develop the ow-graph for the fft algorithm from the radix-2

Develop the ow-graph for the FFT algorithm from the radix-2 FFT algorithm for the N = 9 case in which the input is in the bit-reversed order and the output is in normal order.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd