If i needed to integrate to find a volume or area of a 3d shape how could I do it in the program as fast as possible?

Printable View

- 04-02-2002oscurovolumes and areas
If i needed to integrate to find a volume or area of a 3d shape how could I do it in the program as fast as possible?

- 04-02-2002SilentStrike
The code I posted here won't do it as fast as possible.. but it will do it in the blink of an eye for <10^5 iterations.

http://www.cprogramming.com/cboard/s...threadid=13293

You can optimize that simpson's integral to use half as many calls to evaluate (and thus pretty much twice as fast), but the code will be a little longer.