| 1 | initial version |
Here is an option using the excel-tab dialect in python.
with open('fun.csv', 'w') as f1:
writefile = csv.writer(f1, dialect='excel-tab')
for x in [0..2*pi,step=0.01]:
result=[n(x,digits=4)]+[n(sin(k*x), digits=3) for k in [1..10,step=4]]
writefile.writerow(result)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.