Ask Your Question

Revision history [back]

click to hide/show revision 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)