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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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 12:23:10 PST Path: archiver1.google.com!news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a9a86997!not-for-mail From: "Bill Ward" Organization: realitycoder Subject: Re: Differentation in Ada? User-Agent: Pan/0.13.3 (That cat's something I can't explain) Message-Id: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Thu, 22 Jan 2004 20:23:10 GMT NNTP-Posting-Host: 63.246.166.120 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1074802990 63.246.166.120 (Thu, 22 Jan 2004 12:23:10 PST) NNTP-Posting-Date: Thu, 22 Jan 2004 12:23:10 PST Xref: archiver1.google.com comp.lang.ada:4677 Date: 2004-01-22T20:23:10+00:00 List-Id: On Thu, 22 Jan 2004 13:40:33 -0600, David C. Hoos wrote: > 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 >> Well I would like to calculate the velocity of a particle travelling along a curve that is rotating around a fixed point: _ v = [ dr ] _ _ ------ = w X r [ dt ] r being the distance from the particle to the fixed point. t is time w is the anular velocity