VX4792 User Manual
G-1
Appendix G: Functions
This appendix covers the following items:
H Differentiation
H Integration
H Random (rnd) function
Differentiation
The diff() function calculates the central deviation as the differential value. The
equation below expresses the central deviation when the function f(x) is given at
even intervals of x.
fȀ(x) [
f (x ) x)–f(x–x)
(2 x)
In actual practice, when function f(x)is expressed by n values, the differential
value f’(x
i) at point xi is given by the following equation:
fȀ(x
i
) [ n
{
f (x
i)1
)–f(x
i–1
)
}
2
Here, n is the number of waveform points and i is an integer in the range, i = 1,
2, ..., n.