delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/29/03:41:54

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
To: djgpp AT delorie DOT com
Date: Mon, 29 Jan 1996 08:30:30 GMT
Subject: Re: Integrals/Derivatives in C
Message-ID: <11FAA9707EF@fs2.mt.umist.ac.uk>

  ohd AT msn DOT com (David Oh) wrote (Subject: Integrals/Derivatives in C):-

> [I want] a simple C code fragment to find the (numeric & symbolic)
> derivative or integral of a function. ...

You need far more than "a simple code fragment" to work out integrals and
differential coefficients (= derivatives) accurately numerically. I have
written C functions to work out integrals by Gauss's method and Kutta-Merson's
method. Accurate numeric integration is complicated. For a start, for good
accuracy, don't try to makeshift with the trapezoid method or Simpson's rule.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019