Number - (Arithmetical | Numerical | Mathematical) Operators

1 - About

Number operators

3 - Elementary

Number - Arithmetic (Function|Operation)

3.1 - Addition (+)

<math>addend + addend = sum </math>


x=1
x+=1
print x
# 2

3.2 - Subtraction (−)

<math>minuend − subtrahend = difference</math>

Subtraction (-)

3.3 - Division (÷ / )

Division (/)


dividend ÷ divisor = quotient

Python:


>>> 3/2
1.5

3.4 - Multiplication (×)

<math> multiplicand × multiplier = product </math>

4 - Integer

4.1 - Integer Division (Truncating)

  • Truncating integer division (//)

Python:


>>> 3//2
1

4.2 - Modulo

  • Modulo (%)

count_to = 1 + 2

5 - Expo / Log

5.1 - Exponentiation

Exponentiation is a mathematical operation involving two numbers, the base (b) and the exponent (n) (or index or power).

<math>base^{exponent} = power</math>

<math>b^n = power</math>

Exponentiation (**).

5.2 - Logarithm

Mathematics - Logarithm Function (log)

<math> log_{base}(power) = exponent </math>

6 - Increment/ decrement

  • ++: increment
  • decrement

Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap