ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 11 Jan 2013 11:52:02 +0100How to output data to a filehttps://ask.sagemath.org/question/9703/how-to-output-data-to-a-file/Here is my code that graphs a function:
z1=2*pi*650*10^6
p1=2*pi*1.95*10^9
p2=2*pi*5*10^9
adc=.667
deltaF=.1*10^9
N=(adc*p1*p2)/z1
M(freq)=(2*i*pi*freq+z1)/((2*i*pi*freq+p1)*(2*i*pi*freq+p2))
Z=abs(N*M(freq))
g(freq)=20*log(Z,10)
pts=[(freq,g(freq).n()) for freq in srange(10^8,10^11,deltaF)]
list_plot(pts, plotjoined=True, scale='semilogx', gridlines="minor", ymin=-25, ymax=5)
How do I output this data to a file so I can compare it to data generated by another piece of software?
gjmFri, 11 Jan 2013 11:52:02 +0100https://ask.sagemath.org/question/9703/How to make a boxplot in Sage?https://ask.sagemath.org/question/8998/how-to-make-a-boxplot-in-sage/How do you make a boxplot in Sage given a dataset?paldepindThu, 24 May 2012 07:22:03 +0200https://ask.sagemath.org/question/8998/Plotting and Fittinghttps://ask.sagemath.org/question/7909/plotting-and-fitting/Hi, I have to learn to plot and fit functions (with error bars in x and y direction).
My question is: **1**) Can I do it with sage? Would you prefer gnuplot?
How can I read and plot data like this: http://rn0.ru/show/1430/ easily in sage?
**2**) And if yes how?
I already tried to plot some randomly created data: http://rn0.ru/show/1429/ And that works great.
**3**) How can I fit a function (nonlinear) with considering the errorbars?
manifoldFri, 28 Jan 2011 12:07:37 +0100https://ask.sagemath.org/question/7909/