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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32a0f046ed0b7cbe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-22 11:56:44 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!frmug.org!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Differentation in Ada? Date: Thu, 22 Jan 2004 13:40:33 -0600 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1074800450 67572 80.67.180.195 (22 Jan 2004 19:40:50 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 22 Jan 2004 19:40:50 +0000 (UTC) To: "Bill Ward" , "comp.lang.ada@ada.eu.org" Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:4675 Date: 2004-01-22T13:40:33-06:00 Without more specifics, it's hard to know just what would be suitable for your problem. For example, I could envision a differentiation function in Ada with the following profile: function Derivitave_Of (The_Function : Function_Access At_The_Value : Float; Using_The_Interval : Float := 0.00001) return Float; where the type Function_Access is defined by type Function_Access is access function (X : Float) return Float; and where the body of Derivative returned the result return (F (X + 0.5 * I) - F (X -0.5 * I) / I; where TheFunction has been renamed to F At_The_Value has been renamed to X and Using_The_Interval has been renamed to I Such an approach will give suitable results for many cases, but sometimes it will not. For a list of books on numerical methods, see: http://www.ericweisstein.com/encyclopedias/books/NumericalMethods.html. ----- Original Message ----- From: "Bill Ward" Newsgroups: comp.lang.ada To: Sent: Thursday, January 22, 2004 11:52 AM Subject: Differentation in Ada? > I can't seem to find much on this but I would like to make a function > that has to utilize differentation. Is there a library around that would > help me to do this or do I need to do the differentation manually? > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada-france.org > http://www.ada-france.org/mailman/listinfo/comp.lang.ada >