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 8368005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:17:23+00:00 2026-06-09T13:17:23+00:00

In some code I’m looking at there is the following statement: from math import

  • 0

In some code I’m looking at there is the following statement:

from math import exp, sqrt, ceil 

however there is no folder called math in the project folder and no modules named exp, sqrt, and ceil. My question is basically where are these modules being imported from and how do I see them and other files like them? Thanks in advance.

  • 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-09T13:17:24+00:00Added an answer on June 9, 2026 at 1:17 pm

    You have some confused terminology. In this case, math is the module, and exp, sqrt, ceil are functions it defines. Usually it is from <module> import <function/class>. math is a base module which is included with every Python installation. Python has set of specific places it will look for the module. In this case, math will be a dynamically loaded module written in C.

    You can find out where it comes from by doing:

    import math
    math.__file__
    

    Note that this will give an error for anything that is inbuilt into the interpreter, however.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I some questions about some code I've been looking at. What does the @staticmethod
First some code: import java.util.*; //... class TicTacToe { //... public static void main
from some code I found in Sacha Barbers free mvvm framework chinch I saw
Some code instead of a long explanation. The problem is : When called from
Some code: import cStringIO def f(): buffer = cStringIO.StringIO() buffer.write('something') return buffer.getvalue() The documentation
Following some code in Agile Web Development book, theres a method to redirect back
Some code I am inheriting uses Python's psycopg2 module to return mxDateTime objects from
In some code I saw recently there was a structure defined like this: typedef
Some code needs to be refactored in approx 10 classes, of these classes there
Read some code from a legecy system. Say I have a instance of class

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.