linux
加速运算
YeeKal
•
•
"#linux"
三角函数
def fastsin(fAngle):
fASqr = fAngle*fAngle
fResult = 7.61e-03
fResult *= fASqr
fResult -= 1.6605e-01
fResult *= fASqr
fResult += 1.0
fResult *= fAngle
return fResult
print(np.sin(2*np.pi/1024))
print(fastsin(2*np.pi/1024))