Feeds
提问
This is a question from numerical methods asking to explain what the code does for 12 marks.
% function [func,deriv]= fcn_nr(x) % func = x^4 - 5*x^3 -124*x^2 + 380*x + 1200; % deriv = 4*x^3 -15*x^2 -248*x +380; x...
6 years 前 | 1 个回答 | 0
1
个回答提问
What does the following code do?
myFunction =@(x)x^2-6; x_lower=0; x_upper=5; x_mid=(x_lower+x_upper)/2; while abs(myFunction(x_mid))>0.01 if (myFunct...
6 years 前 | 1 个回答 | 0

