#161 Euler spiral using python

The curve described by the parametric equations (x, y) = (S (t),C(t)) is called a clothoid (or Euler spiral) and has the property that its curvature
is proportional to the distance along the path of the curve.

import numpy as np
import matplotlib.pyplot as plt
import os
from scipy.special import fresnel

os.chdir(r'D:\projects\wordpress\ex161') 
os.getcwd()

def main():
    t = np.linspace(-10, 10, 1000)
    plt.plot(*fresnel(t), c='k')
    plt.savefig("example161.png", dpi=100)
    plt.show()

if __name__ == '__main__':
    main()