The following simulation shown in Fig.6.3 uses the basic structure of the previous example.
In this simulation some important formulas of physics of the type are shown, whose parameters have been chosen in such a way, that the variable and the adjustable parameters correspond to simple, physical quantities. In the second column of the following table the well known formulas from physics are given and the formulation in the simulation syntax is given in the second line. Calling the function random(n) creates a random number between and . A random distribution with maximum deviation that is symmetric to zero is obtained as random(n)-n/2.
In the third column the meaning of the corresponding variable and the parameters used are given. Gaussian
Gaussian | standard deviation | |
area normalized to 1 | 1/(a*sqrt(pi))*exp(-((x-b)/a)ˆ2) | symmetry variable |
Gaussian |
+ noise | standard deviation |
with additive noise | 1/(a*sqrt(pi))*exp(-((x-b)/a)ˆ2) + | symmetry variable |
random(c/10) - c/20) | = maximum added | |
noise | ||
Gaussian |
noise | standard deviation |
with multiplicative | 1/(a*sqrt(pi))*exp(-((x-b)/a)ˆ2) *(1 | symmetry variable |
noise | random(c/10) - c/20)) | = maximum |
multiplicative noise | ||
Poisson | : expectation value of | |
distribution | (x+10)p^*exp(-x-10)/faculty(p) | = 1,2,3, |
amplitude | angular frequency | |
modulation | a*sin(10*x)*cos(b*x) | : carrier frequency |
bx:modulating frequency | ||
phase | angular frequency | |
modulation | a*sin(10*x)*cos(b*x) | : carrier frequency |
2bx:modulating frequency | ||
frequency | angular frequency | |
modulation | a*sin(5*x*cos(b/10*x)) | : carrier frequency |
b/10 x:modulating frequency | ||
special theory | x = = v/c | |
of relativity: | sqrt(1-xˆ2) | : velocity |
length change | : speed of light | |
special theory | x = = v/c | |
of relativity: | 1/sqrt(1-xˆ2) | : velocity |
mass change | : speed of light | |
Planck’s | = wavelength in m | |
radiation law | a*23340/(x+2)ˆ5/(exp(8.958/((x+2)*b))-1) | : scale factor |
: temperature in K | ||
For calculating the factorial this file contains some special code; in other simulation files this function cannot be used.
Fig.6.3 shows a normalized Gaussian impulse with additive noise superimposed on it, and its integral, that in spite of the perturbation reaches quite smoothly and accurately. The formula field can be edited, such that functions can be changed or other functions can be filled in.