Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. clear all
  2. clc
  3. syms k1 k2 M
  4. w0 = sqrt((k1+k2)/M);
  5.  
  6. dk1 = diff(w0,k1);
  7. dk2 = diff(w0,k2);
  8. dM = diff(w0, M);
  9.  
  10. ek1 = 0.0001;
  11. ek2 = 0.0001;
  12. eM = 0.0001;
  13.  
  14. err_sym = sqrt((dk1*ek1)^2 + (dk2*ek2)^2 + (dM*eM)^2);
  15. err_theory_w0 = vpa( subs(err_sym,{k1, k2, M}, {2.7279, 2.6333, 0.2082+(11.8+17.54)*10^(-3)}) )
  16. theory_w0 = vpa(subs(w0, {k1, k2, M}, {2.7279, 2.6333, 0.2082+(11.8+17.54)*10^(-3)}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement