Check out our courses:
Enterprise Java Spring Microservices: go.telusko.com...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : go.telusko.com...
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
Spring: go.telusko.com...
Java:- go.telusko.com...
Java Spring:- go.telusko.com...
Java For Programmers:- go.telusko.com...
Python : go.telusko.com...
Git : go.telusko.com...
Docker : go.telusko.com...
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusk...
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
TELUSKO Android App : bit.ly/TeluskoApp
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 :- github.com/nav...
Python for Beginners :- bit.ly/3JOLQhl
Editing Monitors :
amzn.to/2RfKWgL
amzn.to/2Q665JW
amzn.to/2OUP21a.
Java:- bit.ly/JavaUde...
Spring:- bit.ly/SpringU...
More Learning :
Java :- bit.ly/3x6rr0N
Python :- bit.ly/3GRc7JX
Django :- bit.ly/3MmoJK6
JavaScript :- bit.ly/3tiAlHo
Node JS :- bit.ly/3GT4liq
Rest Api :-bit.ly/3MjhZwt
Servlet :- bit.ly/3Q7eA7k
Spring Framework :- bit.ly/3xi7buh
Design Patterns in Java :- bit.ly/3MocXiq
Docker :- bit.ly/3xjWzLA
Blockchain Tutorial :- bit.ly/3NSbOkc
Corda Tutorial:- bit.ly/3thbUKa
Hyperledger Fabric :- bit.ly/38RZCRB
NoSQL Tutorial :- bit.ly/3aJpRuc
Mysql Tutorial :- bit.ly/3thpr4L
Data Structures using Java :- bit.ly/3MuJa7S
Git Tutorial :- bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
www.telusko.com
6 сен 2024