fcn - %y =(5*x^3 124*x^2 380*x 1200/x^3 polynomial g2...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function y = fcn(x) % FCN returns a value from a simple function expression % See file deriv.m for derivatives of these functions % % BE SURE TO COMMENT OUT ALL DEFINITIONS NOT REQUIRED % % function f1 y = 9.8 * 68.1 * (1-exp(-10*x/68.1))/x - 40; y % polynomial f2 %y = x^4 - 5*x^3 - 124*x^2 + 380*x + 1200; % % polynomial g2 - version 1 of f2 for 1-point iteration %y = -1200/(x^3 - 5*x^2 - 124*x + 380); % % polynomial g2 - version 2 of f2 for 1-point iteration
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %y = (5*x^3 + 124*x^2 - 380*x - 1200)/x^3; % % polynomial g2 - version 3 of f2 for 1-point iteration %y = (-x^4 + 5*x^3 - 380*x - 1200)/(-124*x); % % polynomial f3 %y = x^2 - 5*x + 6; % % function f4 %y = x^2 - 2*x*exp(-x) + exp(-2*x) - 3; % % function f5 %y = -1200/(x^3 - 5*x^2 - 124*x + 380); % % function f6 %y = x^3 + 2*x^2 + 4*x - 6;...
View Full Document

This note was uploaded on 10/01/2009 for the course MEGR 2144 taught by Professor Sharpe during the Fall '08 term at UNC Charlotte.

Ask a homework question - tutors are online