First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 12 years ago

calc314 gravatar image

I'm not getting the vertical range that you are specifying, but here is what I've got. Note that the log plot only works in the latest release (5.2) of Sage.

z1=2 * pi * 650 * 10^6
p1=2 * pi * 1.9 * 10^9
p2=2 * pi * 5 * 10^9
adc=.667
deltaF=.2 * 10^9

N=(adc * p1 * p2)/z1
M(freq)=(-2 * i * pi * freq * z1)/((-2 * i * pi * freq+p1) * (-2 * i * pi * freq+p2))

g(frq)=20*abs(log(N*M(frq),10))

pts=[(frq,g(frq).n()) for frq in srange(10^8,10^11,deltaF)]

list_plot(pts, scale='semilogx')