Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. % L=size(p);
  2. %
  3. % u_a=exp(p(2,:)).*cos(p(1,:))-(exp(p(1,:)).*cos(p(2,:)));
  4. % U=u-(u_a)';
  5. %
  6. % %X=(sum(U).sum(U));
  7. % er = U.^2;
  8. % z = sum(er);
  9. % %iaya = sum(z)
  10. %
  11. % format long
  12. % E=sqrt((1/L(:,2)*sum(u-u_a.').^2))
  13. N=[1/177 1/665 1/2577 1/10145];
  14. E=[0.019373732087035 0.006016619545069 0.002605405357387 0.001261971686290];
  15.  
  16. plot(N,E,'ro')
  17. grid on
  18. ylabel('RMS Error, e')
  19. xlabel('1/L')
  20. title('Graph showing dependence of RMS error with respect to 1/L using the Finite Element Method')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement