miguel747

Limit sqrt(n)sinx

May 13th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. double limite(long int n);
  6.  
  7. int main(int argc, char const *argv[])
  8. {
  9.     int n=50000;
  10.     double result;
  11.     result = sqrt(n)*limite(n);
  12.     printf("resultado: %f\n",result);
  13.     return 0;
  14. }
  15.  
  16. double limite(long int n){
  17.     if (n==1)
  18.         return 1;
  19.     return sin(limite(n-1));
  20. }
Advertisement
Add Comment
Please, Sign In to add comment