Sine function « Next Oldest | Next Newest »

 ▼ Jack Auman Junior Member Posts: 1 Threads: 1 Joined: Jan 1970 04-16-2000, 03:22 PM When a calculator computes the "sine" value of an angle there is a slight delay before the value is displayed. I was wondering if this delay is because the calculator is actually using a Taylor series expansion of the sine function and, thus, needs to keep adding terms until it reaches a term of "neglible" value. Thanks... ▼ Andrés C. Rodríguez (Argentina) Posting Freak Posts: 1,193 Threads: 43 Joined: Jul 2005 04-16-2000, 08:19 PM The calculators may use a combination of look-up tables for certain values, and also use some kind of series or polynomial expansion to obtain the values for all other angles. Also needed are: normalization of the angle (reducing it to +/-180°); conversion between grad/rad/deg; use and truncation of guard digits; and checking for particular conditions (tangent of 90°, etc). These are the steps programmed in the calculator ROM or (not exactly named) microcode. In the HP Journal, between 1972 and 1977, some four or five articles appeared, detailing the methods chosen by the calculators designers for trig and log functions, and the trade-offs between execution time, error magnitude, and ROM space needed to implement them. ▼ Valtoni Junior Member Posts: 4 Threads: 0 Joined: Jan 1970 04-18-2000, 08:04 AM There is an algorithm called CORDIC (COordinate Rotation DIgital Computer) that is used to calculate trigonometric functions. If you want more information, try these: http://www.ezcomm.com/~cyliax/Articles/RobNav/sidebar.html http://mvlsi.kaist.ac.kr/~fairwind/comarith/cordic_algo/cordic_algo.html

 Possibly Related Threads... Thread Author Replies Views Last Post HP50g: Writing a function that returns a function Chris de Castro 2 995 12-10-2013, 06:49 PM Last Post: Han i41CX draws sine curve Egan Ford 4 732 04-13-2010, 02:03 PM Last Post: Egan Ford HP-41 draws sine curve Juergen Keller 18 1,830 03-25-2010, 04:46 PM Last Post: Garth Wilson x=4? Function Shawn 2 552 10-01-2002, 10:12 AM Last Post: Vieira, Luiz C. (Brazil) Implement 'AND' function with 'XOR' function. tal 4 678 12-13-2000, 05:55 AM Last Post: Steve (Australia)

Forum Jump: