Skip to content

Commit

Permalink
In this math Module has been explained.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay2521 authored Aug 15, 2020
1 parent 875e8f8 commit 7be0ad5
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ADVANCE/Modules/Math Module/math.ceil( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.ceil()

# math.ceil( ) = used to return the ceil value of a number.

# Here is the program for math.ceil( )

import math

print('\nCeil value of "20.2345854" is :',math.ceil(20.2345854))


12 changes: 12 additions & 0 deletions ADVANCE/Modules/Math Module/math.exp( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.exp()

# math.exp( ) = used to return a floating-point number after raising e to the given number.

# Here is the program for math.exp()

import math

print('\nexp of "10" is :',math.exp(10))

13 changes: 13 additions & 0 deletions ADVANCE/Modules/Math Module/math.fabs( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.fabs()

# math.fabs( ) = used to return the absolute value of a number.

# Here is the program for math.fabs()

import math

print('\nAbsolute value of "20.2345854" is :',math.fabs(20.2345854))


13 changes: 13 additions & 0 deletions ADVANCE/Modules/Math Module/math.factorial( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.factorial()

# math.factorial( ) = used to return the factorial of a number.

# Here is the program for math.factorial( )

import math

print('\nFactorial value of "15" is :',math.factorial(15))


12 changes: 12 additions & 0 deletions ADVANCE/Modules/Math Module/math.floor( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.floor()

# math.floor( ) = used to return the floor value of a number.

# Here is the program for math.floor()

import math

print('\nFloor value of "20.2345854" is :',math.floor(20.2345854))

12 changes: 12 additions & 0 deletions ADVANCE/Modules/Math Module/math.log( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.log()

# math.log( ) = used to return the natural log of a given number.It is calculated to the base e value.

# Here is the program for math.log()

import math

print('\nlog of "10" is :',math.log(10))

13 changes: 13 additions & 0 deletions ADVANCE/Modules/Math Module/math.log10( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.log10()

# math.log10( ) = used to return the base 10 log of a given number.

# Here is the program for math.log10()

import math

print('\nlog10 of "20" is :',math.log10(20))


13 changes: 13 additions & 0 deletions ADVANCE/Modules/Math Module/math.modf( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.modf()

# math.modf( ) = used to return the fractional and integer parts of a number.

# Here is the program for math.modf( )

import math

print('\nmodf of "15.5" is :',math.modf(15.5))


12 changes: 12 additions & 0 deletions ADVANCE/Modules/Math Module/math.pow( ).py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Python math module is defined as the most famous mathematical functions.

# In this lets see about math.pow()

# math.pow( ) = used to return the power of the x corresponding to the value of y.

# Here is the program for math.pow()

import math

print('\nPower of "25" correspond to "3" is :',math.pow(25, 3))

0 comments on commit 7be0ad5

Please sign in to comment.