Advertisement
Guest User

Untitled

a guest
May 28th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5.  
  6.  
  7. typedef struct
  8. {
  9.  
  10. float x,y;
  11.  
  12. }PIERWIASTEK;
  13.  
  14.  
  15. float funkcja(float x)
  16. {
  17. return powf(2,x)-4*x;
  18. }
  19.  
  20. int main()
  21. {
  22. PIERWIASTEK P;
  23. float e=0.01;
  24.  
  25. FILE *f;
  26.  
  27.  
  28. float x1=0.0, x2=2.0;
  29.  
  30. int n;
  31.  
  32. f=fopen("results.dat","wb");
  33.  
  34. while(fabs(x2-x1)>e)
  35. {
  36.  
  37.  
  38. }
  39.  
  40.  
  41.  
  42.  
  43.  
  44. return 0;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement