Red Function
import math
Base of numeral system
base = 5
Period of the red electromagnetic wave in seconds
period = 1 / (2.47 * math.pow(10, 14))
Value of z corresponding to the period of the wave
z = period / 9.192631770
Calculation of the gamma function
gamma = math.gamma(z)
Addition of phases
phases = [0, math.pi/2, math.pi, 3math.pi/2, 2math.pi]
Function f(t)
def f(t): value = 0 for i in range(len(phases)): value += math.sin(2 * math.pi * 4.8 * math.pow(10, 14) * t + phases[i]) return value * gamma
Calculation of the value of the function f(t) at several points
print(f(0.1)) print(f(0.2)) print(f(0.3))