Pages

Monday, March 23, 2015

Basic mathematical functions in Python 3

Hello, This article takes the reader to recognize the Basic mathematical functions in Python 3 together! Mathematical functions is indispensable in computer language. Basic math functions, it has  + – * / .



Basic function +-*/** (exponentiation add, divide, multiply, divide) in Python 3.

Basic functions format + – */ as follows hits.
Plus
> > > 2 + 2
4
Divide
> > > 50 – 5
45
Multiply
> > > 2 * 3
6.
Division
> > > 8/5
1.6
The terms and conditions
> > (2 + 2) * 5
20

Exponentiation in Python 3

> > 2 ** 4
16

An example of a mathematical function used by the referenced variables in Python 3.

>>> a = 4
>>> b = 3
>>> (a + b) / a
1.75

Another example Use math functions to the เบี้อง in equation format.
>>> x = 3 + 4a
>>> y = 2 – 3a
>>> z = x + y
>>> print(z)
(5+1a)

Thank you

No comments:

Post a Comment