How to calculate the derivative of the input data

Assignment Help Electrical Engineering
Reference no: EM13273817

Write a C program that reads in the Y values of a function provided in data.txt. The Y values correspond to an X domain ranging from -3 to 6 with a step size of 0.01. The program must use a function that performs the numerical differentiation method described below to calculate the derivative of the input data and write the resulting X and Y values to a CSV file. Corresponding X and Y values must be separated by a comma and subsequent data points must be separated by new lines.
m=Δf(x)/Δx=[f(x+h)-f(x)]/h
In our case the size of h is our step size and if we perform this calculation between each data point we will get the derivative of the function.
• A function must be used to calculate the derivative between 2 values, it must accept the 2 Y values currently being evaluated and return the derivative at that point.
• When a file is opened it must be confirmed that the file was opened correctly.
• The lower and upper bound values and step size must be defined as constants
Next the produced CSV file must be imported into Microsoft Excel and the X and Y data must be plotted in a chart. The axes must be labelled appropriately and the chart must be given a title. Once the data is plotted a trendline of the appropriate type must be fitted to the data.
Finally you must calculate the variance of the Y values imported into Excel without using the built in variance function. You may only use the built in SUM and AVERAGE functions. Variance is defined in the equation below:
σ2=(Σ(X-μ)2)/N

Where σ2 is the variance, X is the actual data, μ is the average of all the data and N is the total number of data elements. You will make a cell that contains the average of all the Y values. Then for each Y value a formula must produce a cell that contains the value of (X- μ)2 where X is the individual data elements and then you must average all of the resulting values.

Reference no: EM13273817

Questions Cloud

What do patients expect from medical treatment : What do patients expect from medical treatment, what leads people to seek treatment and how does a patient decide where to go for treatment?
What is the change of its electric potential : A particle of mass 1.00× 10?3 kg and charge ?1.00 ?C is released from rest near the ground in a constant, horizontal electric field of strength 5.00 kV/m. What is the change of its electric potential
Determine the maximum power that transistor can dissipate : A certain power transistor is packaged in a TO-220 case having a thermal resistance, RJC = 3°C/W. The device will be mounted using a mica insulator and silicone grease (RCS = 1°C/W) onto a heat sink having RSA = 6°C/W.
How many shares will remain after the repurchase : how many shares will remain after the repurchase round nearest whole number shares?
How to calculate the derivative of the input data : The Y values correspond to an X domain ranging from -3 to 6 with a step size of 0.01. The program must use a function that performs the numerical differentiation method described below to calculate the derivative of the input data and write the re..
Analyze how your prior understanding about this religion : Discuss any misconceptions you had about the religion you researched and analyze how your prior understanding about this religion was altered (if at all) through your encounter.
Determine the mass of the rope : Andy (mass 77kg ) uses a 2.7m -long rope to pull Bob (mass 61kg ) across the floor (μk=0.20) at a constant speed of 1.0m/s. What is the mass of the rope
Explain chemically resistant polymer is printed on the board : In the production of printed circuit boards for the electronics industry, a 0.235 mm layer of copper is laminated onto an insulating plastic board. Next a circuit pattern made of a chemically resistant polymer is printed on the board
Should it replace the old steamer : To support the greater sales, the new machine would require that inventories increase by $2,900, but accounts payable would simultaneously increase by $700. Walter's marginal federal-plus-state tax rate is 40%, and its WACC is 13%. Should it repla..

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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