[linux-l] Re: Programmiersprachen

David Hansen david.hansen at physik.fu-berlin.de
Do Aug 24 00:39:52 CEST 2006


On Wed, 23 Aug 2006 16:26:00 +0200 Oliver Bandel wrote:

> (* -------------------------------------------------------------------- *)
> (* This function is for calculating the numerical derivation for a      *)
> (* function  f  with lower x-value at  x  and higher x-value at         *)
> (* x + epsilon.                                                         *)
> (* -------------------------------------------------------------------- *)
> let derive f x epsilon = (  f(x +. epsilon) -. f x ) /. epsilon

1/ε { f(x+ε/2) - f(x-ε/2) } hat einen halb so großen Fehler
(für genügend kleine ε).

David




Mehr Informationen über die Mailingliste linux-l