Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.27 KB | None | 0 0
  1. #teste1.m
  2. clear all
  3. x0=12; % estimativas iniciais para x(1) e x(2)
  4. options=optimset('Display','iter'); % mostra a solu¸c~ao em cada it.
  5. [x,fval,exitflag,output]=fsolve('fun1',x0,options) % resolve
  6.  
  7. fun1.m
  8. function F=fun1(x)
  9. F(1) = x(1)^3 - (3*x(1)^2)*10 + 4000 * 0.638;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement