## NumPy Logarithmic Ufuncs

Table of Contents Introduction Computing the Logarithmic Function Computing the Logarithmic Function to any Base $b$ Plotting the Logarithmic Function Introduction Definition The logarithmic function with base $a$ where $a>0$ and $a\ne1$ (denoted by $y=\log_a x$) is defined as: $\boxed{y = \log_a x \iff x=a^y}$ where...

## NumPy Exponential Ufuncs

Table of Contents Introduction The Exponential Function for $a>1$ The Exponential Function for $0< a<1$ Influence of the Initial Value $C$ Introduction Definition An exponential function is a function of the form: $\boxed{f(x) = C a^x}$ where $a>0, a \ne 1$ is a positive real number and $C \ne 0$ is a real number. The...

## NumPy Inverse Trigonometric Ufuncs

Table of Contents Introduction The Inverse Sine Function The Inverse Cosine Function The Inverse Tangent Function Introduction In this article, we will examine the inverses of the 3 basic trigonometric ufuncs: Function Ufunc Input x Domain of Function Description $\sin^{-1} x$ np.arcsin(x) real $-1 \leq x \leq 1$...

## NumPy Trigonometric Ufuncs

Table of Contents Introduction Computing the Trigonometric Ufuncs Transformations Shifting in the $x$-direction Shifting in the $y$-direction Scaling in the $x$-direction Scaling in the $y$-direction Reflection about the $x$-axis Reflection about the $y$-axis Combining Transformations Introduction NumPy provides the...

## NumPy Array Arithmetic

Table of Contents Introduction NumPy Addition + NumPy Subtraction - NumPy Negation - NumPy Multiplication * NumPy Division / NumPy Floor Division // NumPy Power ** NumPy Modulus/Remainder % Compound ufunc Operations Commonly Used Mathematical Functions Introduction NumPy’s ufuncs make use of Python’s built-in...

## NumPy Vectorization

Table of Contents What are Universal Functions? An Example of Vectorization Timing the Vectorization What are Universal Functions? This course is concerned with the use of a certain class of built-in functions in NumPy called Universal Functions (ufuncs) to perform operations on arrays efficiently. In addition to the...