ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 14 Aug 2012 09:15:56 -0500Deriving Data and Plottinghttps://ask.sagemath.org/question/9236/deriving-data-and-plotting/In the following x means multiply.
Let
z1=2 x pi x 650 x 10^6
p1=2 x pi x 1.9 x 10^9
p2=2 x pi x 5 x 10^9
adc=.667
deltaF=.2 x 10^9
In the following j is the imaginary representation
Now let `N=(adc x p1 x p2)/z1` and
M=(-2 x j x pi x freq x z1)/((-2 x j x pi x freq+p1) x (-2 x j x pi x freq+p2))
The base formula is abs(20 x log(N x M,10)) or the absolute value of 20 log(N x M) where the log base is base 10. Within the base formula is *freq* (the value of the frequency) which will be swept from 10^8 to 10^11 in steps of deltaF (.2 x 10^9)
The vertical range is from -25 to 5 (linear scale) and the horizontal range is from 10^8 to 10^11 (log scale)
The horizontal axis as stated is a **Log** scale as opposed to Linear.
How do I set this up in Sage to plot per the above? Thanks.
gjmTue, 14 Aug 2012 09:15:56 -0500https://ask.sagemath.org/question/9236/