keybd
INPUT
yes
screen
OUTPUT
lf
swiss13
on
~\n
1
nolist
fmt
\n\N
yes
1
yes
fixed
2
degrees
off
20.00
0.00
150.00
0.00
5
15
tnm,trapzd
a
-4 |
b
4 |
delta
0.13 |
EPS
0.001 |
func
Enter the function of a single variable into the script of this cell. In the script, denote the single variable by the symbol %1. The initial example is for the polynomial 2*x*x+3*x+1, which is written 2*%1*%1+3*%1+1
This is the function that will be integrated between a and b.
43.82
|
home
Use the trapezoidal rule to integrate a function defined in cell func, between endpoints a and b, to a fractional accuracy contained in the value field of cell EPS.
This web is derived from p. 120 of "Numeric Recipies in C", first edition.
To use this web, enter the function to be integrated into the formula field of cell func, and the endpoints of the integration into the value fields of cells a and b. Enter the maximum allowable fractional error in the result into the cell EPS. Then execute the script of this cell. The result of the integration appears in the value field of this cell.
93.34
|
indx
8.00 |
it
128.00 |
jdex
64.00 |
olds
Any number which is unlikely to be the averge of func at a and b will do here.
93.38 |
sum
746.50 |
tnm
64.00 |
trapzd
93.34
|
x
4.06 |