(3). Write a computer program using MatLab that finds the first and second derivatives of a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(3). Write a computer program using MatLab that finds the first and second derivatives of a func- tion f at a giveen value a of x, using the backward, forward and central finite difference methods. Input data to the program should be a function f, a, the value of h, and the number of rows n.Test your program to find the derivatives of f(x) = 2x sin(x) at x = 0.1,0.5, 1, 1.5. Compare the results with the exact answer more preferably in tabular and in graphical forms. (10) (4). Write a computer program using MatLab that estimate the first and second derivatives of f(x)= arc tan(x) at x = 1;. (10) Total Marks: [40] (3). Write a computer program using MatLab that finds the first and second derivatives of a func- tion f at a giveen value a of x, using the backward, forward and central finite difference methods. Input data to the program should be a function f, a, the value of h, and the number of rows n. Test your program to find the derivatives of f(x) = 2x sin(x) at x = 0.1,0.5, 1, 1.5. Compare the results with the exact answer more preferably in tabular and in graphical forms. (10) (4). Write a computer program using MatLab that estimate the first and second derivatives of f(x) = arc tan(x) at x = 1;. (10) Total Marks: [40] (3). Write a computer program using MatLab that finds the first and second derivatives of a func- tion f at a giveen value a of x, using the backward, forward and central finite difference methods. Input data to the program should be a function f, a, the value of h, and the number of rows n.Test your program to find the derivatives of f(x) = 2x sin(x) at x = 0.1,0.5, 1, 1.5. Compare the results with the exact answer more preferably in tabular and in graphical forms. (10) (4). Write a computer program using MatLab that estimate the first and second derivatives of f(x)= arc tan(x) at x = 1;. (10) Total Marks: [40] (3). Write a computer program using MatLab that finds the first and second derivatives of a func- tion f at a giveen value a of x, using the backward, forward and central finite difference methods. Input data to the program should be a function f, a, the value of h, and the number of rows n. Test your program to find the derivatives of f(x) = 2x sin(x) at x = 0.1,0.5, 1, 1.5. Compare the results with the exact answer more preferably in tabular and in graphical forms. (10) (4). Write a computer program using MatLab that estimate the first and second derivatives of f(x) = arc tan(x) at x = 1;. (10) Total Marks: [40]
Expert Answer:
Answer rating: 100% (QA)
Task 3 Finding derivatives using finite difference methods function firstderiv secondderiv finiteDif... View the full answer
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these programming questions
-
COMPANY NAME-Peace By Chocolate, COUNTRY EXPORTING FROM CANADA-Italy Name and overview of the firm, explaining what business they are in (4 marks) Mission and Vision of the firm (3 marks) SWOT...
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
On December 31 of 2022, Tkaronto Corp. had 750 units in inventory of its product, which cost $15 per unit to produce. During January 2023, the company produced 1000 units at a cost of $17 per unit....
-
According to a recent study, the IT strategic role that has the greatest impact on shareholder value is: a. informate. b. digitize. c. automate. d. transform.
-
The stadium is an indoor structure with a seating capacity of 20,000. The project begins with clearing the site, an activity that lasts eight weeks. Once the site is clear, the work can start...
-
Think of a product you are familiar with-the clothes you are wearing or the beverage you just drank or the book you are reading. Identify the challenges that would be involved in distributing this...
-
What is a preference share and why might a company favour this form of finance?
-
Melissa Crupp is the new manager of the materials storeroom for Canton Manufacturing. Melissa has been asked to estimate future monthly purchase costs for part #4599, used in two of Canton's...
-
In the transportation industry, fuel is a huge expense. Will you be able to get all your fuel at the depot, or will you be reliant upon fuel stations?
-
You have been hired by Gnomeo, Inc., a company that buys and resells miniature garden gnomes. The company started business on January 1, 2019. The chief accountant has asked you to compile a set of...
-
Cameron insurance company and share driver Griffin at annual premium of $740 after 6 months Griffin sold the car and canceled the insurance Cameron insurance company refunded the remaining half of...
-
What were the working conditions for workers (children) in the late 1700s to early 1900s. Descriptions of the working conditions in the late 1700s to early 1900s that led to reforms in work practices...
-
If these two countries trade these two goods with each other, what would the Ricardian model of comparative advantage suggest would be the upper limit for the world equilibrium price of bread in...
-
In an extrinsic semiconductor, can you calculate the size of the intrinsic bandgap using temperature dependent electrical transport measurements? Explain why
-
Evaluate et dx as an infinite series.
-
List the requirements of an S Corporation. What are the benefits of having S Corporation status?
-
how does the legal issue of personhood influence environmental law?
-
On average there are four traffic accidents in a city during one hour of rush-hour traffic. Use the Poisson distribution to calculate the probability that in one such hour there arc (a) No accidents...
-
Determine the stability condition for the step size h for the trapezoidal integration method, which has the form h Yi+1=Yi+[f (vi) + f (Vi+1)]
-
It is possible to obtain the value of through the infinite sum In this problem, you will explore the convergence of this summation for a finite number of terms N, Write a MATLAB function that...
-
Consider the system of ordinary differential equations (a) Confirm that (x,y) = (0,0), (1,1), and (1,1) are steady states of this system. (b) What is the 2 2 steady state Jacobian for this system in...
-
Consider a publicly-held company whose products you are familiar with. Some examples might include: Access the companys public website and search for its most recent annual report. (Note: Some...
-
The 2014 financial statements of LVMH Moet Hennessey-Louis Vuitton S.A. are presented in Appendix C of this book. LVMH is a Paris-based holding company and one of the worlds largest and best-known...
-
San Francisco Sea Salt's controller prepared the following statements of cash flow (in thousands of dollars) for the past two years, the current year (2020), and the upcoming year (2021): After...
Study smarter with the SolutionInn App