Here are some commonly used math functions:
- Addition (
+
): Adds two numbers together. - Subtraction (
-
): Subtracts one number from another. - **Multiplication (
*
): Multiplies two numbers. - **Division (
/
): Divides one number by another. - **Exponentiation (
**
): Raises one number to the power of another. - **Square Root (
sqrt
): Calculates the square root of a number.
For more information on math functions, you can visit our Math Functions Guide.
Example
Here's an example of how to use some of these functions in Python:
import math
# Addition
result = 5 + 3
print("Addition Result:", result)
# Subtraction
result = 5 - 3
print("Subtraction Result:", result)
# Multiplication
result = 5 * 3
print("Multiplication Result:", result)
# Division
result = 5 / 3
print("Division Result:", result)
# Exponentiation
result = 5 ** 3
print("Exponentiation Result:", result)
# Square Root
result = math.sqrt(16)
print("Square Root Result:", result)
Python