From: "David C. Hoos" <david.c.hoos.sr@ada95.com>
To: "Bill Ward" <bill_Ward@realitycoder.com>,
"comp.lang.ada@ada.eu.org" <comp.lang.ada@ada-france.org>
Subject: Re: Differentation in Ada?
Date: Thu, 22 Jan 2004 13:40:33 -0600
Date: 2004-01-22T13:40:33-06:00 [thread overview]
Message-ID: <mailman.21.1074800450.281.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: pan.2004.01.22.17.52.53.225545@realitycoder.com
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" <bill_Ward@realitycoder.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada-france.org>
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
>
next prev parent reply other threads:[~2004-01-22 19:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-22 17:52 Differentation in Ada? Bill Ward
2004-01-22 19:40 ` David C. Hoos [this message]
2004-01-22 20:23 ` Bill Ward
2004-01-22 23:40 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox