Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8808317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:35:33+00:00 2026-06-14T02:35:33+00:00

I am trying to plot a clothoid function using SciPy. Here is the syntax

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:35:34+00:00Added an answer on June 14, 2026 at 2:35 am

    The arguments out1 and out2 are optional. You can use

    s, c = fresnel(x)
    

    The argument z shown in the docstring is the x argument. That is an unfortunate discrepancy–the docstring should be consistent with the function signature.

    The arguments out1 and out2 can 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:

    import numpy as np
    from scipy.special import fresnel
    import matplotlib.pyplot as plt
    
    t = np.linspace(0, 5.0, 201)
    ss, cc = fresnel(t / np.sqrt(np.pi / 2))
    scaled_ss = np.sqrt(np.pi / 2) * ss
    scaled_cc = np.sqrt(np.pi / 2) * cc
    plt.plot(t, scaled_cc, 'g--', t, scaled_ss, 'r-', linewidth=2)
    plt.grid(True)
    plt.show()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to plot some data using pylab scatter function. I'm using pylab.scatter(X,
Hi I am trying to plot this using matplotlib's step function from matplotlib.pyplot import
I'm trying to plot a bar graph using HighCharts. So far so good, but
I'm trying to plot values as a function of the date (only hh:mm:ss, without
I am trying to plot a graph using gnuplot. I have six text files.
I am trying to plot using piecewise in one of my problems and I
Trying to plot a ConvexHull Using PlanarGraphPlot from the ComputationalGeometry package, it does not
I am trying to plot a ratio but my problem is that when the
I am trying to plot roots of a function that is composed of multiple
Trying to plot a signal function of 0 and 1, much like the solution

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.