使用泰勒展开式的sin(x)汇编代码 [英] Assembly code for sin(x) using Taylor expansion

查看:283
本文介绍了使用泰勒展开式的sin(x)汇编代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在x86 Linux中,如何使用 Taylor Expansion 在汇编代码中实现sin(x)?

In x86 Linux, how can I implement sin(x) in assembly code using Taylor Expansion?

推荐答案

这篇文章对您有帮助吗?

Would this article help you?

http://www.coranac.com/2009/07/sines/

它具有用于计算C和汇编版本的近似sin(x)值的几种算法.当然,它是ARM汇编,但是其要旨应该可以轻松转换为x86或类似版本.

It has a couple of algorithms for computing approximate sin(x) values, with both C and assembly versions. Granted, it's ARM assembly, but the gist of it should translate easily to x86 or similar.

这篇关于使用泰勒展开式的sin(x)汇编代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆