1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 # Converted from kcan.m import numpy as np from misc import save_ascii npts = 100 x = np.linspace(0, 5, npts) y = np.column_stack([ np.exp(-x), 1.0/(1.0 + x), (1.0 + 2*x)**(-0.5), (1.0 + 3*x)**(-1.0/3), (1.0 + 4*x)**(-0.25) ]) table = np.column_stack([x, y]) save_ascii('kcan.dat', table)