(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.
-
How does the digitization of books, movies and music affect inventory economies of scale?
-
Describe the role of professional judgment in ethical leadership as it pertains to accountants and auditors.
-
What is the difference between management accounting and the other two types of conventional accountingfinancial accounting and other accounting systems?
-
On August 1, 2010, Christy Co. treasurer signed a note promising to pay $121,500 on December 31, 2010. The proceeds of the note were $114,000.00 rev: 05-10-2011 19.value: 15.00 points You did NOT...
-
Akash Airways is a new regional airline that has started with its limited service for Delhi, Lucknow, Mumbai, Bangalore and Chennai. Akash Airways has two Boeing 7 3 7 4 0 0 airplanes, one based in...
-
Allen Blay owns 100% of the stock in AB Corporation, organized ten years ago in California. AB operates a foreign branch in Country A. In the current year, AB reports $500,000 of taxable income from...
-
What was the most surprising thing you learned about the relationship between lifestyle choices and good/bad health outcomes?
-
Suppose a government decides to significantly increase its borrowing through bond issuances to fund ambitious infrastructure projects aimed at stimulating economic growth. How might this surge in...
-
Can you answer with much information and recent secondary data please, Thanks in advance. The Company is : The New Meaning Foundation of the queen's award for enterprise. 1) What is the aim for...
-
Can you advise if it is fair then to compare labor rates between companies in different states? Some states have a much lower minimum wage. For example, Kentucky has a minimum wage of $7.50 an hour...
-
When Karina was 6 years old, her parents started depositing $1,200 every three months into an account in Bank Mitch that pays interest at the rate of 1.75%/year compounded quarterly until she gets...
-
The September 30 bank statement for Cadieux Company and the September ledger account for cash are summarized here: BANK STATEMENT Checks Deposits Other Balance Balance, September 1 $ 1,840 September...
-
The speed that a tsunami, or tidal wave, can travel is modeled by the equation v = 365d, where v is the speed in kilometers per hour and d is the average depth of water in kilometers. A tsunami is...
-
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...
-
Apachi Company ended its fiscal year on July 31, 2008. The companys adjusted trial balance as of the end of its fiscal year is as shown. Instructions (a) Prepare the closing entries using page J15....
-
The following items were taken from the financial statements of R. Stevens Company. (All dollars are in thousands.) Instructions Prepare a classified balance sheet in good form as of December 31,...
-
The adjusted trial balance for Karr Bowling Alley at December 31, 2008, contains the following accounts. Instructions (a) Prepare a classified balance sheet; assume that $13,900 of the note payable...
Study smarter with the SolutionInn App