Question

Need ASAP Please !!!!!!!

Write user defined MATLAB code for the following question. for all 3 parts a, b and c. Given the following data: x 0.6 0.7 0.8 0.9 1. fx) 5.2296 3.61552.7531 2.2717 2 find the second derivative f(x) at the point x = 0.8. (a) Use the three-point forward difference formula. (b) Use the three-point backward difference formula. (c) Use the three-point central difference formula.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

A three point formuda Can be Consl ute tvar schenles and Comrades a rea point ht to ge the seond d ve erve Arom ttu prob llond, kigen values つ 20 扣

Add a comment
Know the answer?
Add Answer to:
Need ASAP Please !!!!!!! Write user defined MATLAB code for the following question. for all 3...
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
  • 5. Create a MATLAB script to find the first and second derivative of given function using Forward, Backward, central an...

    5. Create a MATLAB script to find the first and second derivative of given function using Forward, Backward, central and Taylor numerical schemes. Test your code using the following functions: f(x)-xe*+3x2 +2x -1 and find f (3) and f' (3) for with h 0.1, 0.01 and 0.001 b. Approximate y'(1) and y"(1) using the following table f(x) 0.992 0.8 0.9 0.999 1.0 1.001 1.008 Input: (copy and paste the MATLAB or Scilab script in the following box) 5. Create a...

  • 4. The first derivative of a function f(x) at a point x = xo can be approximated with the four-po...

    Solve using MATLAB and provide code please 4. The first derivative of a function f(x) at a point x = xo can be approximated with the four-point central difference formula: dx 12h where h is a small number relative to xo. Write a user-defined function function that calculates the derivative of a math function fx) by using the four-point central difference formula. For the user-defined function name, use dfax-FoPrder(Fun, x0), where Fun is a name for the function that is...

  • Matlab code for this problem. 1[35pl Write a user-defined MATLAB function that determines the unit vector...

    Matlab code for this problem. 1[35pl Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector in the direction from...

  • MATLAB 1) Calculate the following for the function f(x) = e-4x- 2x3

    #use MATLAB script1)  Calculate the following for the function f(x) = e-4x- 2x3 a. Calculate the derivative of the function by hand. Write a MATLAB function that calculates the derivative 05. of this function and calculate the derivative at x = 0.5. b. Develop an M- to evaluate the cetered finite-difference approximation (use equation below), at x = 0.5. Assume that h = 0.1. c. Repeat part (b) for the second-order forward and backward differences. Again Assume that h = 0.1. d. Using the results...

  • Please help me answer this question using matlab Consider the function f(x) x3 2x4 on the...

    Please help me answer this question using matlab Consider the function f(x) x3 2x4 on the interval [-2, 2] with h 0.25. Use the forward, backward, and centered finite difference approximations for the first and second derivatives so as to graphically illustrate which approximation is most accurate. Graph all three first-derivative finite difference approximations along with the theoretical, and do the same for the second derivative as well

  • please solve in matlab 1[35p) Write a user-defined MATLAB function that determines the unit vector in...

    please solve in matlab 1[35p) Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector Join the direction from A...

  • Numerical Analysis

    Consider the same five-data pair (x, y) and- Find the first and second derivatives exactly at x = c. (c is any x in your data!)- Obtain the three-point forward difference formula for the second order derivative with a remainder by using the Taylor series expansion. Calculate f¢¢(c) by using this formula for the data given.- Obtain the three-point backward difference formula for the second order derivative with a remainder by using the Taylor series expansion. Calculate f¢¢(c) by using this formula for the data given.- Obtain the three-point central difference formula for the second order derivative with a remainder by using the Taylor series expansion. Calculate f¢¢(c) by using this formula for the data given.You can choose any five data pair.

  • Please show answer using MATLAB Time, t(s) 0 2 4 6 8 10 12 14 16...

    Please show answer using MATLAB Time, t(s) 0 2 4 6 8 10 12 14 16 Position, x(m) 0 0.7 1.8 3.4 5.1 6.3 7.3 8.0 8.4 To find the velocity at all times using the two-point differencing formula (and where appropriate the three-point forward or backward differencing formulae), these should yield the results correct to O(h2) To find the acceleration at all times using the three-point central differencing formula (and where appropriate the four-point forward or backward differencing formulae),...

  • MatLab Help!! Write a function called Difference to calculate the central difference, forward diflerence, and backward diference approximation to an function within a given range of xmin:xinc:xmax...

    MatLab Help!! Write a function called Difference to calculate the central difference, forward diflerence, and backward diference approximation to an function within a given range of xmin:xinc:xmax The input argument of the function Difference is the handle to an anonymous function, a row array xmin:xinc:xmax The differences should be returned as a row array, calculated at xmin xinc xmax Restriction. The function should not use loops Ex func - (x) x.3 xmin-3 xinc-e.25; xmax-4; [backDifference, centralDifference, forwardDifference] Derivative(func, xmin, xmax,...

  • please i need the requiered MATLAB script to solve this. All calculations need to be done in matlab please Design Layout References Mailings Review View Share 1) (15 points) Calculate the followi...

    please i need the requiered MATLAB script to solve this. All calculations need to be done in matlab please Design Layout References Mailings Review View Share 1) (15 points) Calculate the following for the function f(x) = e-a-x a. Use calculus to determine the correct value of the derivative. b. Develop an M-file function to evaluate the centered finite-difference approximations, starting with x = 0.5 Thus, for the first evaluation, the x values for the centered difference approximation will be...

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