I am trying to plot a clothoid function using SciPy. Here is the syntax for the Fresnel integrals but I cannot understand what are the arguments x, out1, out2 in scipy.special.fresnel(x[, out1, out2])? Formulas in the description are about t and z, which are not in the function.
I am trying to plot a clothoid function using SciPy. Here is the syntax
Share
The arguments
out1andout2are optional. You can useThe argument
zshown in the docstring is thexargument. That is an unfortunate discrepancy–the docstring should be consistent with the function signature.The arguments
out1andout2can be used if you already have arrays in which you want to put the results of the function call. This allows you to save memory by reusing existing arrays.Note that the scipy implementation of the function scales the argument by pi/2. See the notes about this in the wikipedia article: http://en.wikipedia.org/wiki/Fresnel_integral
This script will generate the first plot shown in the wikipedia article: