To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 5793
5792  |  5794
Subject: 
Re: basic trigonometric functions on the handyboard..
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 9 Mar 1999 21:40:15 GMT
Original-From: 
Scott Harris <srharris@Princeton^antispam^.EDU>
Viewed: 
910 times
  
A Taylor series isn't the way to go: they converge far too slowly.

Here is a polynomial fit to arccos(x):

arccos(x) ~ =  1.5708 - 1.0927 x + 4.358 x^3 - 0.8340 x^5

It differs from the exact value of arccos(x) by no more that 0.08  radians (4.6
degrees) in the range [-1,1].

If you need more accuracy, just fit a polynomial with more terms to arccos.

-Scott



Thomas Heidel wrote:

Hi,

The taylor for cos^-1 goes:

cos^-1(x) = Pi/2- (x + 1/2*x^3/3 + 1/2*3/4*x^5/5 + 1/2*3/4*5/6*x^7/7
...)

   (which in fact is simply Pi/2 - sin^-1)

The results are very good for small x. For x close to 1 you need many
many
elements of that series to be somehow accurate.

"SHETTI.NITIN.MANGESH" wrote:

Dear Berg,
        You can perhaps express cos^-1 in the forms of a Taylor series and
use that series for finding the approximate value. I have however not
tried it.
        There is no math function for inverse cosine.Refer to handy board
manual available el.www.mit.media.edu for details on IC.
                                                        Yours sincerely,
                                                            Nitin




Message is in Reply To:
  Re: basic trigonometric functions on the handyboard..
 
Hi, The taylor for cos^-1 goes: cos^-1(x) = Pi/2- (x + 1/2*x^3/3 + 1/2*3/4*x^5/5 + 1/2*3/4*5/6*x^7/7 ...) (which in fact is simply Pi/2 - sin^-1) The results are very good for small x. For x close to 1 you need many many elements of that series to (...) (25 years ago, 9-Mar-99, to lugnet.robotics.handyboard)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR