1 | initial version |
from sage.symbolic.integration.integral import indefinite_integral
amplitude = 1.0
phase = 0.0
Input(f,t) = amplitudesin(2pift + phase)
assume(f>0)
Input_fourier(f,t) = indefinite_integral(exp(-2piItf)*Input(f,t),t) show(Input(f,t)) show(Input_fourier)
plot(real(Input_fourier(f,2)),f,0,10000,gridlines = True,)
2 | No.2 Revision |
from sage.symbolic.integration.integral import indefinite_integral
amplitude = 1.0
phase = 0.0
Input(f,t) = amplitudesin(2pift + phase)
assume(f>0)
Input_fourier(f,t) = indefinite_integral(exp(-2piItf)*Input(f,t),t) show(Input(f,t)) show(Input_fourier)
plot(real(Input_fourier(f,2)),f,0,10000,gridlines plot(norm(Input_fourier(f,2)),f,0,10000,gridlines = True,)