Advertisement
ithoran

Untitled

Mar 23rd, 2015
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. main()
  4. {
  5.     float x=0,e,p;
  6.     scanf("%f",&e);
  7.     do
  8.     {
  9.         p=x;
  10.         x=(3*pow(p,4)+4*pow(p,2)-4)/(4*pow(p,3)+8*p-9);
  11.     }
  12.     while ((fabs(x-p))>e);
  13.     printf("Dobija se broj: %f",x);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement