From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: GNAT for AVR - Mathematical Functions Date: Mon, 17 Sep 2018 18:28:17 +0100 Organization: none Message-ID: <0001HW.21501BB10206341670000725E2CF@news.individual.net> References: Reply-To: findlaybill@blueyonder.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net vR0JY0NU3FQDUnkAu7dGDQta4LnbQaKRJdKpnqDu0ZVRrlpcbQ X-Orig-Path: not-for-mail Cancel-Lock: sha1:17aLXMQnlJTiH9HB3ka02pN/GOs= User-Agent: Hogwasher/5.19 Xref: reader02.eternal-september.org comp.lang.ada:54347 Date: 2018-09-17T18:28:17+01:00 List-Id: On 17 Sep 2018, ada.newcomer@gmail.com wrote (in article): > Hello. > > I'm programming an ATmega328P with the GNAT compiler for AVR. > > I need to use the Sqrt, Arctan and Atan2 functions. But maybe in the future I > will need to use some more. > > I don't have access to the regular Ada.Numerics package. > > By now, I wrote the Sqrt using the Newton's method and Arctan using Taylor > series. > > I would like to know if there is a better way to use/implement mathematical > functions (maybe import them from C?). > > I really appreciate any help. Since you have sqrt, see: -- Bill Findlay