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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:ef05:: with SMTP id k5-v6mr17795508ioh.31.1537150966376; Sun, 16 Sep 2018 19:22:46 -0700 (PDT) X-Received: by 2002:a9d:2306:: with SMTP id j6-v6mr162308otb.3.1537150966159; Sun, 16 Sep 2018 19:22:46 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder4.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!x188-v6no377735ite.0!news-out.google.com!c63-v6ni585ith.0!nntp.google.com!x81-v6no379126ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 16 Sep 2018 19:22:45 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=82.158.226.175; posting-account=5yoB_QoAAACEgC8Ptivlt2xOVcwvg-9q NNTP-Posting-Host: 82.158.226.175 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: GNAT for AVR - Mathematical Functions From: ada.newcomer@gmail.com Injection-Date: Mon, 17 Sep 2018 02:22:46 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54335 Date: 2018-09-16T19:22:45-07:00 List-Id: 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.