GK SCIENTIST

General Knowledge One Stop Source
Menu
  • Home
  • Social Science
    • History
    • Political Science
    • Geography
  • Science
    • Physics
    • Chemistry
    • Biology
  • Chemistry Notes
  • Mathematics
  • Computer
  • Tutorial MySQL
  • Tutorial Python
  • Java Tutorial
  • English Grammar
  • English Essay
  • Indian Anthropology
  • Philosophy
  • Solved Paper
  • UPSC
  • Current Content
    • Current Affairs
    • RSTV News
    • Yojana and Kurukshetra Gist
  • Donate
  • Contact Us

If you are interested in advertising to our audience, submit the advertising enquiry form.

Advertising Enquiry
Computer

Math Modules in Python

Gk Scientist December 2, 2022 No Comments
Tweet WhatsApp Telegram

Math Modules in Python:

We can use the PyCharm code editor for this example. If you do not know about it then follow this link- How to install PyCharm for Python and create a program in it.

(1) ceil()– The method ceil() returns the smallest whole number greater than or equal to x.

When you pass float values, it changes to integer values.

ceil math module in python 1 - Math Modules in Python

When you pass integer values, no changes take place.

python ceil math module - Math Modules in Python

(2) floor()– The floor() function returns the largest whole number less than or equal to x.

When you pass float values, it changes to integer values.

floor math module in python - Math Modules in Python

When you pass integer values, no changes take place.

python floor math module - Math Modules in Python

(3) fabs()– The fabs() function returns the absolute value of the x.

Negative values change to positive.

fabs math module in python - Math Modules in Python

Positive values remain positive.

python fabs math module - Math Modules in Python

(4) factorial()– The factorial() function return the x factorial as an integer. If you use float or negative value it gives you an error.

factorial math module in python - Math Modules in Python

(5) fsum()– The fsum() function returns an accurate floating point sum of values in the iterable.

python fsum math module - Math Modules in Python

(6) sqrt()– The sqrt() function returns the non-negative square root of x. If x is negative, a domain error occurs.

sqrt math module in python - Math Modules in Python

(7) log()– The log() function returns the natural logarithm of x. If x is negative, a domain error occurs. If x is zero, a range error may occur.

log function in python - Math Modules in Python

How to Create a Program in Python (Using IDLE & Notepad)
How to Create Variables in Python
Google Search Console and Google Analytics
Operating System as a Resource Manager
Multimedia and Its Application
Information Security in E-Commerce
Mathematical functions– Python Docs
Prev Article
Next Article

Related Articles

Java while Loop
Java while Loop: We can use the Eclipse IDE for …
Gk Scientist January 2, 2023 Computer

Java while Loop

Inheritance in C++
Inheritance in C++: C++, like all object-oriented languages, supports class …
Gk Scientist November 19, 2022 Computer

Inheritance in C++

MySQL Logical Operators
MySQL Logical Operators: (1) AND Operator- MySQL logical AND operator …
Gk Scientist November 12, 2022 Computer

MySQL Logical Operators

Python MySQL Delete Query
Python MySQL Delete Query: (1) Delete query deletes data and …
Gk Scientist December 13, 2022 Computer

Python MySQL Delete Query

Careers in Information Technology (IT)
Careers in Information Technology: Information Technology as the name suggests …
Gk Scientist October 22, 2022 Computer

Careers in Information Technology (IT)

Convert String to List in Python
Convert String to List in Python: We can use the …
Gk Scientist November 28, 2022 Computer

Convert String to List in Python

Secondary Storage Devices
Secondary Storage Devices: A computer is capable of storing the …
Gk Scientist August 6, 2022 Computer

Secondary Storage Devices

Information and Communication Technology (ICT)
Information and Communication Technology: It may be defined as the …
Gk Scientist October 25, 2022 Computer

Information and Communication Technology (ICT)

Leave a Reply Cancel Reply

Search




  • Popular
  • Recent




GK SCIENTIST

General Knowledge One Stop Source

Information

  • About Us
  • Terms and Condition, Disclaimer
  • Contact Us

Android Apps

  • IAS App For English Medium Students
  • IAS Basics App For English Medium Students
  • IAS Hindi App For Hindi Medium Students
DMCA.com Protection Status

Popular Tags

Biology (33) Biology Questions (88) Chemistry (57) Computer (214) Current Affairs (4) Current Content (0) Economy (10) English Essay (172) English Grammar (75) English Literature (10) Geography (83) History (259) Indian Anthropology (11) Indian Polity (14) JKAS Mains Question Papers (17) Mathematics (68) Moral Science (7) NCERT & Other Boards Books (25) Philosophy (114) Physics (89) Political Science (132) RS TV News (33) Science (553) Social Anthropology (7) Social Science (17) Solved Paper (47) UPSC (7) UPSC Mains Question Papers (26)

Downloads

  • NCERT Books
  • Old NCERT Books
  • NIOS Books For IAS, SSC, and State PSC Exam
  • Tamil Nadu Board Books: Important For UPSC, SSC, and State PSC Exam
  • Modern Indian and World History Notes For IAS Exam
  • UPSC Topper 2013 Gaurav Agrawal Notes For IAS Preparation
  • UPSC IAS Prelims General Studies – Previous Year Papers
  • UPSC Mains Question Papers

Copyright © 2023 GK SCIENTIST
Theme by MyThemeShop.com & Hosted On Cloudways

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh
 

Loading Comments...