{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# General Applied Math" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Overview\n", "Working with math is perhaps the most common task in any kind of geoscience workflow in Python. This notebook will cover:\n", "\n", "- Python `math` vs. `numpy`\n", "- Mathematical Constants\n", "- Trigonmetric and Hyperbolic Functions\n", "- Algebraic Functions\n", "- Degrees and Radians\n", "- Rounding\n", "- Exponents and Logarithms\n", "- Sorting" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## `math` vs. `numpy`\n", "\n", "`math` is a built-in part of the standard Python library. This is a useful module for common and simple computations when working with single input values. To work with arrays or large datasets, `numpy` is a good alternative to the `math` module. `numpy` is a powerful external Python package for working with arrays and mathematical functions. `numpy` is package developed to work with scientific computing and math functions and is tailored to run much faster with large datasets and arrays." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
Important Note
\n", " Themath
library cannot be used with complex numbers. Instead, equivalent functions can be found within the standard Python cmath
library\n",
"\n",
"