{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ASE 311 HW #7

# ASE 311 HW #7 - -2-1.5-1-0.50.511.52-2-1.5-1-0.50.511.52ASE...

This preview shows pages 1–7. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -2-1.5-1-0.50.511.52-2-1.5-1-0.50.511.52ASE 311 HW #712.8) a.)>> x = linspace( -sqrt(5) , sqrt(5), 50 );y1 = sqrt(5-x.^2);y2 = - sqrt(5-x.^2);y3 = (x.^2) - 1;axis([ -sqrt(5) sqrt(5) -sqrt(5) sqrt(5) ]);hold onplot( x, y1, x, y2, x, y3 )b.)>> x = 1.5;>> y = 1.5;>> x1 = sqrt(y+1)x1 =1.5811>> y1 = sqrt(5-x^2)y1 =1.6583>> x1 = sqrt(y1+1)x1 =1.6304>> y1 = sqrt(5-x1^2)y1 =1.5303>> x1 = sqrt(y1+1)x1 =1.5907>> y1 = sqrt(5-x1^2)y1 =1.5715>> x1 = sqrt(y1+1)x1 =1.6036>> y1 = sqrt(5-x1^2)y1 =1.5584>> x1 = sqrt(y1+1)x1 =1.5995>> y1 = sqrt(5-x1^2)y1 =1.5626>> x1 = sqrt(y1+1)x1 =1.6008>> y1 = sqrt(5-x1^2)y1 =1.5612>> x1 = sqrt(y1+1)x1 =1.6004>> y1 = sqrt(5-x1^2)y1 =1.5617c.)>> x1 = 1.5;y1 = 1.5;disp(' iteration x y ')for n = 0 : 21n = n + 1;f1 = x1^2 + y1^2 - 5;f2 = y1 - x1^2 + 1;df1x = 2 * x1;df1y = 2 * y1;df2x = -2 * x1;df2y = 2;x1 = x1 - (( f1 * df2y ) - f2 * df1y ) / ( df1x * df2y - df1y * df2x );y1 = y2 - (( f2 * df1x ) - f1 * df2x ) / ( df1x * df2y - df1y * df2x );fprintf( ' %f \ t \ t%f \ t \ t%f \ t \ n ' , n , x1, y1 )...
View Full Document

{[ snackBarMessage ]}