Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- main()
- {
- float x=0,e,p;
- scanf("%f",&e);
- do
- {
- p=x;
- x=(3*pow(p,4)+4*pow(p,2)-4)/(4*pow(p,3)+8*p-9);
- }
- while ((fabs(x-p))>e);
- printf("Dobija se broj: %f",x);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement