Question
I have the following data which reprent a free falling object. calculte the first derivative at each point and plot this data. use the attached defintion for the calculation
Also calculate the second derivative at each point using the formula and plot this the data.

use the attached defintion for the calculation

Do not use matlab predefined commands but the attachef definitions. Use h set to 0.1

Data:

(0,800) (3.9,732) (7.5,592) (13.9, 290) (20, 5)



(o (+ & -ܪܐ -}
fi+1-264 + S-1 - 0(H3) S=i+ 12
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Below is the code for matlab for calculating the first and second-order derivatives using analytic expressions.

#code begins

h = 0.1; f = [800 732 592 290 5]; t = [0 3.9 7.5 13.9 20];

for i = 1:length(f) - 1
first_derivative(i) = (f(i+1) - f(i))/h; end;

for i = 2:length(f) - 1

second_derivative(i) = ( f(i+1) - (2*f(i)) + f(i) )/(h*h);

end;

#code ends

Both the expressions for the derivatives are second-order accurate as the higher-order terms are neglected.

Add a comment
Know the answer?
Add Answer to:
I have the following data which reprent a free falling object. calculte the first derivative at...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • My code for calculating the first derivative is the second image Compute second derivative O solutions...

    My code for calculating the first derivative is the second image Compute second derivative O solutions submitted (max: 10) You are provided with a set of data for the position of an object over time. The data is sampled at evenly spaced time intervals. Your task is to find a second order accurate approximation for the acceleration at each point in time. Write a Matlab function that takes in a vector of positions x, the time interval between each sampled...

  • I have posted the data table which is the first picture i Data Table Company Cloudy...

    I have posted the data table which is the first picture i Data Table Company Cloudy Windy Sunny S 1,300,000 Rainy $ (d) 693,000 S 0) Net Sales Revenue Variable Costs Fixed Costs Operating Income (Loss) 166,000 Units Sold Contribution Margin per Unit $ Contribution Margin Ratio (a) 144,000 346,500 374,400 (b) 203,000 270,000 $ (e) S (g) $87,200 130,000 12,000 4.00 S (f) S77.00 $ 18.00 70% 20% Print Done Requirement 1. Fill in the blanks operating loss.) for...

  • i need the answer to be on a MatLab window 1. Consider the following equation, which...

    i need the answer to be on a MatLab window 1. Consider the following equation, which represents the concentration (c, in mg/ml) of a drug in the bloodstream over time (t, in seconds). Assume we are interested in a concentration of c2 mg/ml C3te-0.4t A. Estimate the times at which the concentration is 2 mg/ml using a graphical method Be sure to show your plot(s). Hint: There are 2 real solutions B. Use MATLAB to apply the secant method (e.g....

  • Use the attached Matlab code as a basis to solve the following ordinary differential equation usi...

    Question 1 QUESTION 2 Use the attached Matlab code as a basis to solve the following ordinary differential equation using Euler's method, with timestep of 0.1, from t-0to t-100. d)0) -0 - sin (5vt cos(у Plot y versus t from t=0 to t=100. How many local maxima are on this interval(do not include end points). Be careful to count them all! Answer should be an integer 1 w% Matlab code for the solution of Module 2 3 dt-9.1; %dt is...

  • For this exercise we will run a regression using Swiss demographic data from around 1888. The...

    For this exercise we will run a regression using Swiss demographic data from around 1888. The sample is a cross-section of French speaking counties in Switzerland This data come with the R package datasets. The first step is to load the package into your current environment by typing the command libraryldatasets) in to the R console. This loads a number of datasets including one called swiss. Type help/swiss) in the console for additional details. The basic variable definitions are as...

  • I got the first 4 steps done. Just need to know what formulas from the data...

    I got the first 4 steps done. Just need to know what formulas from the data to use for steps 5,6, and 7. Step #1 ASSUMPTIONS Launch-it S10.00 Product #1: Sales price per unit Variable costs per unit: 1.00 2.00 1.00 4.00 Purchase Price Shipping and HandlingS Sales Comission Total variable cost per unit 200 Monthly volume Treat-Time $30.00 Product #2: Sales price per unit Variable costs per unit: 7.00 8.00 3.00 18.00 Purchase Price Shipping and Handling Sales Comission...

  • I only need help with part B. I need help with the sketch and all of B, not just the first part (like others have answer...

    I only need help with part B. I need help with the sketch and all of B, not just the first part (like others have answered previously.) THIS IS THE PART I REALLY NEED HELP WITH 1. [70 total points/ (the Exchange Paradox) You're playing the following game against an opponent, with a referee also taking part. The referee has two envelopes (numbered 1 and 2 for the sake of this problem, but when the game is played the envelopes...

  • Could you please help me with questions 1a-1b please? ( since i could only find the formula neede...

    Could you please help me with questions 1a-1b please? ( since i could only find the formula needed for 1a, if u aren't sure with 1b u can just do 1a but please dont reply "no enough data given " because i have a lil systemical problem with replying the comments) * the first question was asked to complete the anova table ( table 9.1 in the picture ) by using the formulas ( in the pictures) * I have...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT