//my sine function using the seven degree Maclaurin polynomial in horner form //I don't know why you ask 6 order. Is that possible? double msin(double x) { double y=x-x*x*x/6+pow(x,5)/120-pow(x,7)/5040; return y; }