#include <stdio.h>
#include <conio.h>
#include <math.h>
#define f(x) (x*x*x-6*x+2)
int main(){
float a,b,c,e=0.00001;
printf("ebteda va entehaye baze ra moshakhas konid\n");
scanf("%f%f",&a,&b);
if(f(a)*f(b)>0){
printf("the function hasnt root in [a b]");
}
else
start:
c=(a+b)/2 ...