does the FPU instruction: fsin perform the calculation by hardware?

Started by qlmi, April 08, 2006, 12:19:19 PM

Previous topic - Next topic

qlmi

or fsin perform the calculation by some other instructions? that means whether we can program to compute the math function: sin(x) in assembly language but without employing the instruction fsin?

asmfan

you can approximate any function by Tailor series... as well as sin. but CPU does it in hardware.
Russia is a weird place

qlmi

thanks for your reply! but i am still wondering how the fpu hardware can perform such kind of complex computation by electronic circuit. :red

asmfan

by the way qlmi,
welcome on board. of course every trigonometric function in hardware as in software is only approximation but with a different accuracy. hardware circuits do it faster... but i'm sure both this ways are based on Tailor series with a limited num of elements in serie to perform needed accuracy (e.g. 80bit or 64bit)
Russia is a weird place