Reference no: EM13672149
You will implement a second-order low-pass filter using the finite difference method. The finite difference method is a useful mathematical method that is used to numerically solve differential equations. Numerical techniques become very handy when there is no analytical solution for a given equation. In the finite difference method, all continuous signals are discretized as
Here, is the time step and N is the total number of time steps. is just a convenient way to express V at time step . Another approximation used in the finite difference method is the discretization of derivatives. Derivatives are approximated by finite differences of discrete signals:
The differential equation for the second-order low-pass filter i s given by
where is the cutoff frequency. For the MP, we will consider an input signal given by . You can play with other input signals later. In the test input files, we set the frequencies so that . Our goal is to numerically solve the above differential equation and find the approximate solution to . Using the finite difference method, the differential equation is discretized as follows.
This is the time-stepping equation that you have to evaluate for this MP. For every time step n, you use the values of the input and output signals at step n or before to calculate the output signal at time step n+1. You may assume that .
Once you implement this, you need to output your calculated values of in the following format:
printf("%lf\n", variable_name);
Attachment:- cprogram.zip
Clay system immediately after the inelastic collsion
: A rod of mass m and length x is supported on a knife edge at its midpoint. A ball of clay M is dropped from rest from a height y and makes a perfectly inelastic collsion with the rod 0.9m from the point of support. Discover the angular momentum of th..
|
What is the wavelength of the sound wave
: A plucked guitar string produces a sound wave of frequency 440 Hz. What is the wavelength of the sound wave (assume the speed of sound in air is 340 m/s)?
|
Compute the maximum velocity object has during its motion
: An object of mass 6.8 kg is attached to a spring of force constant 1720 N/m. The object is set into simple harmonic motion, with an initial velocity of vo=4.1m/s and an initial displacement of xo=0.11m. Compute the maximum velocity the object has dur..
|
What is the focal length of the second lens
: A lens system consists of two lenses18.0 cm apart. The first lens is convex (converging) and has a focal length of 9.90 cm. An object is placed 3.96 cm in front of the first lens and produces an image 9.90 cm behind the second lens. What is the focal..
|
Implement a second-order low-pass filter
: Implement a second-order low-pass filter using the finite difference method. The finite difference method is a useful mathematical method that is used to numerically solve differential equations.
|
What is the new angular speed of the merry-go-round
: A playground merry-go-round of radius R = 2.00 m has a moment of inertia I = 245 kg m2 and is rotating at 9.0 rev/min about a frictionless vertical axle. Facing the axle, a 27.0 kg child hops onto the merry-go-round and manages to sit down on its edg..
|
What the stones velocity is when it hits the ground
: A stone is thrown at an angle of 30 above the horizontal from the top edge of a cliff with an initial speed of 12 m/s a stop watch gauge the stones trajectory time from the top of the cliff to the bottom is 5.6 s what the stones velocity is when it h..
|
What is the change in the potential energy of the charge
: A uniform electric field of 2.00 kN/C is in the x direction. A positive point charge Q=3.00 mC is released from rest at the origin. What is the potential dissimilarity between the origin and 4.00 m from the origin (V(4m)-V(0m))? What is the change in..
|
Gliders are launched from the ground by means of a winch
: Some gliders are launched from the ground by means of a winch, which quickly reels in a towing cable attached to the glider. What average power must the winch supply in order to accelerate a 195-kg ultra light glider from rest to 28.4 m/s over a hori..
|