CODEX

Solving Coordinate Geometry Problems in Python from scratch

Learn to construct your own Python functions to solve geometrical problems without importing any packages

Nikhil Adithyan
Published in
9 min readNov 28, 2020

--

Introduction

Coordinate Geometry also is known as Analytical Geometry or Cartesian Geometry, used to analyze or study geometry through the means of coordinates and vertices. This concept is held in much geometrical mathematics for example to find the area of geometrical shapes using coordinates, finding the midpoints, dividing a line segment into m:n ratio, and so on. Each of these concepts has its own formulas and methodology for solving the problems. What if we can solve these using python?

Python, being a general-purpose programming language, is highly powerful and efficient in solving mathematical tasks or problems. Even though there are several scientific packages like NumPy and SciPy, defining our own mathematical functions and parameters on top of python would be more flexible. So, what are we going to solve? Read the concept below to know more about it.

Concept

In this article, we are going to solve a problem based on the triangle and a simple calculation on finding the area of the quadrilateral.

--

--

Nikhil Adithyan
CodeX

Founder @BacktestZone (https://www.backtestzone.com/), a no-code backtesting platform | Top Writer | Connect with me on LinkedIn: https://bit.ly/3yNuwCJ