Category Archives: Basic Math

Trigonometric Functions

Lengths and ratios of right-angled triangles (Basic knowledge) Trigonometric functions (sin, cos, tan, etc.) are frequently used in machine learning as tools to effectively work with angles, periods, rotations, and positions. Once the angles of a right triangle are determined, the ratio is also determined. Commercially available set squares have well-known trigonometric ratios. As shown in the figure, the… Read More »

Sum of natural numbers

Calculate the Σ symbol expression that represents the sum of natural numbers using NumPy. What is NumPy? NumPy is a Python library for numerical computation. It’s particularly strong in array operations (vectors and matrices) and allows for fast calculations. We can efficiently perform calculations like summing natural numbers. Code Explanation Why isn’t the end value included? There are… Read More »

Solving Linear Equations with SymPy (For Beginners)

SymPy allows you to easily solve linear equations as follows: 2x+3=7 Defining the Equation and Declaring Variables Describe the equation you want to solve in SymPy and declare the variables you will be using. This code does the following: This code does the following: This result indicates that the solution to the equation 2x + 3 = 7 is x =… Read More »