body main banner  
torso

TRAP.8xp

Purpose: Estimates definite integrals using Trapezoidal Rule

Download TRAP.8xp

Source Code

:Prompt A
:Prompt B
:Prompt N
:(B-A)/NstoreD
:0storeS
:AstoreX
:Y1/2storeS
:For(K,1,N-1,1)
:X+DstoreX
:Y1+SstoreS
:End
:BstoreX
:Y1/2+SstoreS
:SDstoreI
:Disp

Generated by SourceCoder, 2005 Cemetech