#15 Python Tutorial for Beginners | Import Math Functions in Python
1.2M views on YouTube
Check out our courses:
Agentic AI Engineering with Python : https://go.telusko.com/agentic-ai-python
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : https://go.telusko.com/learn-master
Coupon: TELUSKO10 (10% Discount)
For More Queries WhatsApp or Call on : +919008963671
website : https://telusko.com/
Udemy Courses:
Java Spring:- https://go.telusko.com/Udemyjavaspring
Java:- https://go.telusko.com/udemyteluskojava
Spring: https://go.telusko.com/udemyteluskospring
Java For Programmers:- https://go.telusko.com/javaProgrammers
Python : https://go.telusko.com/udemyteluskopython
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodocker
Instagram : https://www.instagram.com/navinreddyofficial/
Linkedin : https://in.linkedin.com/in/navinreddy20
WhatsApp : https://go.telusko.com/whatsapp
Discord : https://discord.gg/D8hWe9BqfF
In this lecture we are discussing about math function:
— math module in Python provides a wide range of mathematical functions.
— math module is a built-in module in Python.
— math module is used to perform mathematical operations.
— math module is used to perform mathematical operations like square root, power, floor, ceil, etc.
— for using math module we have to import it first
# import math
— then we can use math module function like math.sqrt(25)
or
— we can use alias name like m=math then we can use m.
m.sqrt(25) if we import math as m
or
— we can import only required function like from math import sqrt,pow
sqrt(25)
pow(2,3)
Here are some of the most commonly used ones methods of math module:
math.sqrt(x): Returns the square root of x.
math.pow(x, y): Returns x raised to the power y.
math.ceil(x): Returns the smallest integer greater than or equal to x.
math.floor(x): Returns the largest integer less than or equal to x.
math.exp(x): Returns the exponential value of x.
math.log(x[, base]): Returns the natural logarithm (base e) of x or the logarithm of x with the specified base.
math.sin(x), math.cos(x), math.tan(x): Returns the trigonometric sine, cosine, or tangent of x, respectively.
Here are some of the most commonly used ones attributes(constant) of math module:
math.pi: Returns the value of pi.
math.e: Returns the value of e.
math.inf: Returns a floating point positive infinity.
math.nan: Returns a floating point “not a number” (NaN) value.
using help function we can get all the information about math module
help(math)
Github :- https://github.com/navinreddy20/Python-
Python for Beginners :- http://bit.ly/3JOLQhl
Editing Monitors :
https://amzn.to/2RfKWgL
https://amzn.to/2Q665JW
https://amzn.to/2OUP21a.
Java:- https://bit.ly/JavaUdemyTelusko
Spring:- https://bit.ly/SpringUdemyTelusko
More Learning :
Java :- https://bit.ly/3x6rr0N
Python :- https://bit.ly/3GRc7JX
Django :- https://bit.ly/3MmoJK6
JavaScript :- https://bit.ly/3tiAlHo
Node JS :- https://bit.ly/3GT4liq
Rest Api :-https://bit.ly/3MjhZwt
Servlet :- https://bit.ly/3Q7eA7k
Spring Framework :- https://bit.ly/3xi7buh
Design Patterns in Java :- https://bit.ly/3MocXiq
Docker :- https://bit.ly/3xjWzLA
Blockchain Tutorial :- https://bit.ly/3NSbOkc
Corda Tutorial:- https://bit.ly/3thbUKa
Hyperledger Fabric :- https://bit.ly/38RZCRB
NoSQL Tutorial :- https://bit.ly/3aJpRuc
Mysql Tutorial :- https://bit.ly/3thpr4L
Data Structures using Java :- https://bit.ly/3MuJa7S
Git Tutorial :- https://bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
https://www.telusko.com