Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- typedef struct
- {
- float x,y;
- }PIERWIASTEK;
- float funkcja(float x)
- {
- return powf(2,x)-4*x;
- }
- int main()
- {
- PIERWIASTEK P;
- float e=0.01;
- FILE *f;
- float x1=0.0, x2=2.0;
- int n;
- f=fopen("results.dat","wb");
- while(fabs(x2-x1)>e)
- {
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement