What mathematical problem is solved by the following MATLAB code? 1 function x = problem3_8 2 itmax
Question:
What mathematical problem is solved by the following MATLAB code?
Transcribed Image Text:
1 function x = problem3_8 2 itmax = 100; tol = 0;, x0 = 1; 3 for k=1:itmax 4 5 6 8 9 x=x-f (x)/fprime (x); r=f(x); if abs (r) <=tol break end end function y=f(x) 10 11 y=exp(-x) -x; 12 function yp=fprime (x) 13 yp=-exp(-x) -1;
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 0% (1 review)
The following MATLAB code solves the following mathematical problem Find the root of the function fx...View the full answer
Answered By
Pranav Makode
I am a bachelor students studying at professor ram meghe institute of technology and research. I have a great experience of being an expert. I have worked as an expert at helloexperts and solvelancer as a part time job. I have also worked as a doubt solver at ICAD SCHOOL OF LEARNING, which is in Amravati city. I have also worked as an Freelancer.
I have great experience of helping students, as described above. I can help any students in a most simple and understandable way. I will not give you have any chance for complaint. You will be greatfull to accept me as an expert.
5.00+
1+ Reviews
10+ Question Solved
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Question Posted:
Students also viewed these Engineering questions
-
What ODE is solved by the following MATLAB code and what method is used? Include the initial condition in your answer. 1 function problem4_23 2 3 4 nsteps = 100; y = 1; t = 0; h = 0.01; 5 6 g=figure;...
-
Answer the following questions about this MATLAB program. You can assume that the norm computed by MATLAB is the 1-norm. (We are using the 1-norm to simplify the problem, not because MATLAB actually...
-
Answer the following questions about this program: (a) What mathematical problem is solved by this program? (b) What numerical method is used to solve the problem? (c) What does the variable n...
-
An investor bought a 70-strike European put option on an index with six months to expiration.The premium for this option was 1. The investor also wrote an 80-strike European put optionon the same...
-
What is the difference between a pull system and a push system of inventory control?
-
Super Xtra Inc. is publicly held. One of its shareholders, Fred, owns 100 shares of common stock with a basis of $5,000 and a value of $12,000. On October 17 oft his year, Fred receives 25 rights (to...
-
Do you think the advantages outweigh the disadvantages of the IoT? Explain.
-
The controller of Dousmann Industries has collected the following monthly expense data for use in analyzing the cost behavior of maintenance costs. Instructions (a) Determine the fixed- and...
-
A solid steel shaft is 14 ft. long has a diameter of 6 inches over 9 ft. of its length and a diameter of 4 inches for the remaining length, as shown The shaft is in equilibrium when subjected to the...
-
Use contraction mapping to explain the behavior of the solution to Example 3.5. Data from Example 3.5 Use Picards method to find the roots of for the initial guesses 0.1, 0.6, 1.99, and 2.01....
-
Consider the code below that implements Newtons method and answer the following questions. (a) What is the largest real root of the function studied in this problem? (b) What is the criterion for...
-
White Wedding Corporation will pay a $3.05 per share dividend next year. The company pledges to increase its dividend by 5.25 percent per year, indefinitely. If you require an 11 percent return on...
-
Toor Industries Limited (TIL) is engaged in the production and sale of product Y, which is used in hi-tech industries. The following are the extracts from TIL's latest accounts: Sales Cost of sales...
-
While reviewing notes from past meetings with a self-employed client in preparation for an upcoming meeting, you are reading a note form 2021 where CPP Benefits were discussed. Your notes indicate...
-
Gallatin County Motors Inc. assembles and sells snowmobile engines. The company began operations on July 1 and operated at 100% of capacity during the first month. The following data summarize the...
-
Answer any ten of the following: (") Calculate the wavelength of an electron of energy 10 eV. (in) Why do not we observe the de Broglie wavelength with a fast moving cricket ball? (1) What is the...
-
1. Which of the following is principally involved in internal communication within the body? A. The special senses. B. The respiratory system. C. The reproductive system. D. The endocrine system 2....
-
According to the Pew 2012 News Consumption survey, 50% of adults who post news on Twitter (tweet) are younger than 30. But according to the U.S. Census, only 23% of adults are less than 30 years old....
-
The Strahler Stream Order System ranks streams based on the number of tributaries that have merged. It is a top-down system where rivers of the first order are the headwaters (aka outermost...
-
A 1500 kN load was applied on two 20 m long and 500 mm diameter piles that were instrumented for measuring the load variation with depth. a. The variation of frictional resistance per unit area, f...
-
A 300 mm 450 mm plate was used in carrying out a plate loading test in a sand, where the plate settled 5 mm under the applied pressure of 250 kN/m 2 . a. What is the coefficient of subgrade reaction...
-
For a 2.0 m wide and 0.40 m thick beam on elastic foundation, determine the coefficient of subgrade reaction k using Eqs. (10.45) and (10.46), assuming the following parameters: E s = 30 MN/m 2 , E F...
-
providing a graphical representation that shows when your company will start making a profit and the break-even point. Sales Forecast & Breakeven Analysis Year 1 - Units: 100 bagels and 100 donuts...
-
Write a C++ to calculate and display: a. Sum of all numbers between 1 and 10 b. Sum of all even numbers between 1 and 10 c. Sum of all odd numbers between 1 and 10
-
The accounting major is a valuable degree. Students often think only of employment at CPA firm. However, there are many other jobs available. In terms of jobs with the federal government: what is the...
Study smarter with the SolutionInn App