diary20050207

diary20050207 - ezplot(f,[1.5 1.75]) f fprime =...

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

View Full Document Right Arrow Icon
% Matlab diary from cs110a Feb 7 2005. % % This is what I typed in class. % % Type it into Matlab yourself to % reproduce the output I showed. f = inline( 'x^3 + sin(x) - 5') f(1) ezplot(f) ezplot(f,[-2 2]) ezplot(f,[0 2]) ezplot(f,[1 2]) f(1.5) ezplot(f,[1.5 2])
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ezplot(f,[1.5 1.75]) f fprime = inline('3*x^2 + cos(x)') ezplot(f,[0 2]) x = 2 f(x) fprime(x) x = x - f(x)/fprime(x) x = x - f(x)/fprime(x) x = x - f(x)/fprime(x) x = x - f(x)/fprime(x) x = x - f(x)/fprime(x) x = x - f(x)/fprime(x)...
View Full Document

This note was uploaded on 12/27/2011 for the course CMPSC 110a taught by Professor Gilbert during the Fall '09 term at UCSB.

Ask a homework question - tutors are online