The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: qlmi on April 08, 2006, 12:19:19 PM

Title: does the FPU instruction: fsin perform the calculation by hardware?
Post by: qlmi on April 08, 2006, 12:19:19 PM
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?
Title: Re: does the FPU instruction: fsin perform the calculation by hardware?
Post by: asmfan on April 08, 2006, 12:45:07 PM
you can approximate any function by Tailor series... as well as sin. but CPU does it in hardware.
Title: Re: does the FPU instruction: fsin perform the calculation by hardware?
Post by: qlmi on April 08, 2006, 12:50:53 PM
thanks for your reply! but i am still wondering how the fpu hardware can perform such kind of complex computation by electronic circuit. :red
Title: Re: does the FPU instruction: fsin perform the calculation by hardware?
Post by: asmfan on April 08, 2006, 01:46:59 PM
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)
Title: Re: does the FPU instruction: fsin perform the calculation by hardware?
Post by: qlmi on April 08, 2006, 02:33:25 PM
OK, got it!