Lines Matching defs:cos
33 //this a first try to define sqrt, cos, sin, etc...
202 //-Yet another sin/cos--------------------------------------------------------------
209 Piecewise<SBasis> sin( SBasis const &f, double tol, int order){return(cos(-f+M_PI/2,tol,order));}
215 Piecewise<SBasis> sin(Piecewise<SBasis> const &f, double tol, int order){return(cos(-f+M_PI/2,tol,order));}
222 Piecewise<SBasis> cos(Piecewise<SBasis> const &f, double tol, int order){
225 Piecewise<SBasis> cosfi = cos(f.segs[i],tol,order);
237 Piecewise<SBasis> cos( SBasis const &f, double tol, int order){
241 //estimate cos(x)-sum_0^order (-1)^k x^2k/2k! by the first neglicted term
259 return Piecewise<SBasis>(std::cos(alpha)*c-std::sin(alpha)*s);
263 c0 = cos(compose(f,Linear(0.,.5)),tol,order);
264 c1 = cos(compose(f,Linear(.5,1.)),tol,order);