You are on page 1of 24

Roy Haggerty:

Function of time: use


sine function as
example: f(t) = v0 sin(w
t)

Num. Integration

0
0.103813
0.237703
0.514136
0.613117
0.807558
0.863415
0.930582
0.988652
0.999574
0.9463
0.917438
0.745705
0.515501
0.463191
0.297041
0.14112
-0.098249

0.0026991282
0.0143106467
0.0706985431
0.1045161284
0.2039633751
0.2465731877
0.3156420777
0.4231191798
0.5125893213
0.6585298481
0.6958046089
0.8288560623
0.9234465561
0.9381269457
0.9723374134
0.9898638678
0.9924361526

Error

0.002702
0.014331
0.071146
0.105004
0.205106
0.247753
0.316958
0.424887
0.5146
0.661645
0.698939
0.833138
0.928444
0.943129
0.977432
0.994996
0.997581

0.0009023093 0.992436
0.0014231246
0.0063242636
Roy Haggerty:
0.0046667998
This is the numerical
0.005602047
integration along the function
0.0047839492
using the "trapezoidal rule".
The value shown is the integral
0.004170614
from the origin to the time given
0.0041786932
in that row.
0.003922126
0.0047301354
For your numerical integration,
0.004505328
you will want to copy the
equation from C5 to your excel
0.005166094
spreadsheet. Be careful that
0.0054121384
references in equation are
0.0053321422
correct - i.e., you may need to
0.0052398424
modify references to rows or
columns to match your data.
0.0051849357
0.0051840101

Roy Haggerty:
This is the integral of
the function from 0 to
1.62.

f(t) vs. t
1.2
1
0.8
f(t)

0
0.052
0.12
0.27
0.33
0.47
0.521
0.598
0.71
0.8
0.95
0.99
1.15
1.3
1.33
1.42
1.5
1.62

f(t)

0.6
0.4
0.2
0
-0.2

0.2

0.4

0.6

0.8

1
t

1.2

1.4

1.6

1.8

Roy Hagge
Numerical i
using trape
sophisticate
numerical i
but it saves
the same a

You may co
implement
however, to
locations pr

0.4
0.2
0
-0.2

0.2

0.4

0.6

0.8

1
t

1.2

1.4

1.6

1.8

#DIV/0!

Roy Haggerty:
This is the second parameter used in
the trigonometric equation in Column
B.

v0=
w=

rical
g the function
oidal rule".
is the integral
the time given

al integration,
opy the
to your excel
careful that
ation are
may need to
s to rows or
your data.

1
2

Changing this value is equivalent to


changing the spacing between the
time data points. You may modify this
and see how the integration's
accuracy changes (as well as the
function).

Roy Haggerty:
Numerical integration from A3B3 to A21B21
using trapezoidal rule. This is a more
sophisticated way to implement the same
numerical integration as given along column C,
but it saves space and work. Note the answer is
the same as given in cell C21, however.
You may copy the equation from this cell and
implement it in your spreadsheet. Be careful,
however, to modify the first and last cell
locations properly.

You might also like