-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In this math Module has been explained.
- Loading branch information
Showing
9 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | ||
|