This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %Move all terms to one side > x^4  x  2 = 0 func1 = x1.^4  x1  2; %x value that makes function closest to zero is solution [sol1 index1] = min(abs(func1)); %find other solution, between x = 0 and x = 2 x2 = 0:.001:2; func2 = x2.^4  x2  2; [sol2 index2] = min(abs(func2)); fprintf('\nx= %.2f or x = %.2f\n\n', x1(index1), x2(index2));...
View
Full
Document
This note was uploaded on 08/06/2010 for the course ENGR 3 taught by Professor Benyaakov during the Summer '08 term at UCSB.
 Summer '08
 BENYAAKOV

Click to edit the document details