## Top 10 Python Math Cheat Sheets.

Hey Finxters! It is time for another cheat sheet for Python! As we all know too well, Python is super flexible and used in data science which requires a ton of math resources to be available to us since we cannot memorize all of the mathematical equations necessary. So, I have found the top 10 … Read more

## Symbolic Math with SymPy: Advanced Functions and Plots

This article will cover some advanced mathematical functions provided by the Sympy library. If you still have not read the first introductory article to Sympy, you can check it out here. Since most of the basic functions, like the ones for initiating a Sympy session on your terminal or for defining a function/variable, will not … Read more

## Symbolic Math with SymPy

This article shows how to solve math equations and expressions symbolically, in Python. Thanks to the Sympy library, this turns out to be an extremely easy task. However, as you will see in the following examples, the number of tools and functions provided by this library is huge. Thanks to all its features, Sympy represents … Read more

## NumPy Matrix Multiplication — np.matmul() and @ [Ultimate Guide]

Have you ever tried to multiply two NumPy arrays together and got a result you didn’t expect? NumPy’s multiplication functions can be confusing. In this article, we’ll explain everything you need to know about matrix multiplication in NumPy. Watch the video where I go over the article in detail: To perform matrix multiplication between 2 … Read more

## NumPy Dot Product

Numpy is a popular Python library for data science focusing on arrays, vectors, and matrices. An important application of arrays, matrices, and vectors is the dot product. This article will teach you everything you need to know to get started! The dot product behaves differently for different input arrays. Dot Product 1D array and Scalar … Read more

## How to Multiply 2D Matrices in Numpy?

Given two 2D arrays a and b. You can perform standard matrix multiplication with the operation np.matmul(a, b) if the array a has shape (x, y) and array be has shape (y, z) for some integers x, y, and z. Problem Formulation: Given a two-dimensional NumPy array (=matrix) a with shape (x, y) and a … Read more

## How to Calculate the Angle Clockwise Between Two Points

Hey Finxters! Today, you’ll learn an important function that you may need to write in the future: how to write a Python program to calculate the angle between 2 points in a clockwise motion. We will be using principles in the Python language to write a working program to write the angles and calculate the … Read more

## Python divmod() — A Simple Guide with Video

Python’s built-in divmod(a, b) function takes two integer or float numbers a and b as input arguments and returns a tuple (a // b, a % b). The first tuple value is the result of the integer division a//b. The second tuple is the result of the remainder, also called modulo operation a % b. … Read more

## [Numpy * Operator] Element-wise Multiplication in Python

NumPy is a popular Python library for data science. Numpy focuses on array, vector, and matrix computations. If you work with data, you cannot avoid NumPy. So learn it now and learn it well. In this tutorial, you’ll learn how to calculate the Hadamard Product (= element-wise multiplication) of two 1D lists, 1D arrays, or … Read more

## A Guide to Python’s pow() Function

Exponents are superscript numbers that describe how many times you want to multiply a number by itself. Calculating a value raised to the power of another value is a fundamental operation in applied mathematics such as finance, machine learning, statistics, and data science. This tutorial shows you how to do it in Python! Definition For … Read more

## Recursive Power Function: Are You Stuck With This Sololearn Code?

If you learn Python with the excellent Sololearn app, you may find yourself with this code snippet: What’s the output of this code snippet? And, most importantly, how does it work? This short guide will tell you! The code creates a function that returns x^y. It leverages the important programming concept of recursion: it calls … Read more

## Python Modulo

When I studied computer science, the professors pushed us to learn the theory behind modulo operations and residual classes. But many of us lacked motivation. We could not see why calculating the remainder of the division, i.e., modulo, is such an important concept. Yet, many practical code projects later, I have gained the experience that … Read more