top of page

## 2. Math Methods

## What are Math Methods?

Python has a vast number of math functions built-in to perform calculations in your programs without much hassle.

## How do you use Math Methods?

You call math methods in a similar way to string methods. First, type in the word math, then type in the name of the method you want to call.

## math.MathMethodName()

## All Math Methods

Here is a list of all the string methods found in python. Refer back to this anytime you need to!

## acos()

Returns the arc of the cosine number.

## atan()

Returns the arc tangent of a number in radians.

## sin()

Returns the sin number.

## degrees()

Converts an angle form radians to degrees.

## asin()

Returns the arc of the sin number.

## cos()

Return the cosine number.

## tan()

Returns the tangent of a number in radians.

## fabs()

Returns the absolute value of a number.

bottom of page