摘要: 1 float abs(float x) 2 { 3 if(x<0) x=0-x; 4 return x; 5 } 6 7 8 float sin(float x) 9 10 {11 12 const float B = 1.2732395447; 13 const float C = -0.4052847346;14 const float P = 0.2310792853;//0.225; 15 float y = B * x + C * x * abs(x);16 y = P * (y * abs(y) - y) + y;17 return y;18... 阅读全文
posted @ 2013-02-02 21:13 sky1991 阅读(13088) 评论(1) 推荐(1) 编辑