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

  Determine the range of load resistances over the circuit

a) Determine the range of load resistances over which the circuit gives a constant Vout if Rs = 1500 kilo ohms and Vs = 150V. Assume the diode breakdown voltage is 100V and the maximum rated current is 100 mA.

  What is the value of rth

What is the value of RTH?

  Modify very simple cpu to incorporate a new 8-bit register

modify the Very Simple CPU to incorporate a new 8-bit register,R, and two new instructions. MVAC performs the transfer Râ†AC and has the instruction code 1110 XXXX; MOVR performs the operation ACâ†R and has the instruction code 1111 XXXX.

  Find the electric field intensity vector at the origin

There are two charge distributions: one in a infinite plane of charge in x=-2 with a surface charge density of 3mC/m2, abd a infinite line of charge with a linear charge density of -3mC/m that goes through the points A(0, 0, 3m) and B(0, 3m, 0).

  Determine what is the mmf of the solenoid in ampere-turns

A 800 turn solenoid has a total wire length of 400 feet of AWG 24 copper wire. This wire has a resistance of 26.17 ohms per 1000 feet. The voltage measured from one end of the solenoid to the other is 21 volts. What is the mmf of the solenoid in a..

  Determine total power in the am signal and pc and psb

1. An AM signal has an unmodulated carrier voltage VC = 10VP, a load resistance of RL = 10, and a modulation index of m = 1. 2. You are tuned to an AM station at 1200 KHz. Write down the frequency components of the received AM signal.

  What overshoot for a step input to be expected

A control system for positioning the head of a floppy disk drive has the closed-loop transfer function T(s)=11.1(s+18) / (s+20)(s^2+4s+10). Plot the poles and zeros of this system and discuss the dominance of the complex poles.

  Design band-pass filter consisting of an rc high-pass filter

a) Design a band-pass filter consisting of an RC high-pass filter with a cutoff frequency of 300 Hz and an RC low-pass filter with a cutoff frequency of 3400 Hz. Carefully select R and C of each filter so that one filter does not load the other

  How much current will flow through the load

A student from electromechanical systems class planned to construct a transformer that will cause an actual load resistance of 48.2-ohm to appear as 116.3-ohm to an AC voltage source of 211.3 V rms.

  What energy does the electron have at a

Point A is at an electrostatic potential of +1V relative to point B in a vacumm. An electron initially at rest at B moves to A. What energy (in J and eV) does the electron have at A What is its velocity

  Determine the total core and mechanical losses

A 230V shunt motor having an armature resistance of 0.05 W and a field resistance of 75 W draws a line current of 7 A while running light at 1120 rev/min. The line current at a given load is 46 A.

  Find the voltage across the inductor for an instance

1- Find the voltage across the inductor for t > 0 2- Sketch the voltage and the current as a function of time 3- Find the power ( in microwatts) at the terminals of the inductor when t = 200 ms

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