/*Computes sine values using third degree Maclaurin polynomial in horner form. */ #include #include float Maclpoly(float x) { float y; //declare input as float y=x*(1+x*x*(-(1/6)+(x*x/120))); return y; }