Advertisement
sconetto

[FAC] Arcoseno - MatLab

Sep 23rd, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.23 KB | None | 0 0
  1. x = 1.0;
  2. k = 0;
  3. an = 0;
  4. S = x;
  5. while (k <= 200)
  6. an = ((x^(1+2*k))*(1/2)*k)/((factorial(k))+(2*k*(factorial(k))))
  7. S = S + an;
  8. k = k + 1;
  9. end
  10. fprintf('arcsin(%f) = %f',x,S)
  11. fprintf('\n The number of terms used is: %i \n',k)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement