Name Balcha Areda ID NO pgr/18233/11: y X For y X y X U y X For y X y X U
Name Balcha Areda ID NO pgr/18233/11: y X For y X y X U y X For y X y X U
Name Balcha Areda ID NO pgr/18233/11: y X For y X y X U y X For y X y X U
Mathlab practice
ux, y 5
2
sin( x) cos( 2y ) for( x, y ) (0,1) (0,1)
2
function testFdPoisson
f = inline('-5*pi^2*sin(pi*x).*cos(2*pi*y)');
g = inline('sin(pi*x).*cos(2*pi*y)');
[u,x,y] = fd2poisson(f,g,0,1,5)
h = x(1,2) - x(1,1);
% Plot solution
figure, set(gcf,'DefaultAxesFontSize',8,'PaperPosition', [0
0 3.5 3.5]),
mesh(x,y,u), ([0 0 0]), xlabel('x'), ylabel('y'),
zlabel('u(x,y)'),
title(strcat('Numerical Solun to Poisson Equation' ));
>> testFdPoisson
u =