Arama Sonuçları

  1. M

    C dilinde bisection methodu

    #include<stdio.h> #include<math.h> float fun (float x) { return (x*x*x - 4*x - 9); } void bisection (float *x, float a, float b, int *itr) { *x=(a+b)/2; ++(*itr); printf("Iteration no. %3d X = %7.5f\n", *itr, *x); } void main () { int itr = 0, maxmitr; float x, a, b...
Yukarı Alt