Hello everyone! A few days ago, I was working on a machine learning model where I needed to input a function relating X and Y. The only constraints were that the function had to be continuous and the bounds for X and Y had to be [0, 1].

With dozens of distinct curves in mind, I started to sketch them out on a paper. The point was to fit them on a graphing calculator afterwards. It was a tedious task and I asked my sister for help.

“Why don’t you write a program for it?”, she replied.


Purpose

Image for post

An existing application: MyCurveFit

There are existing applications that take in X and Y coordinates to return the exact equation. However, the more complex the curve is, the more coordinates the user has to key in. Furthermore, the user has to manually choose the function to fit the points (Example: Linear versus Exponential).

Image for post

#python #scipy #mathematics #functions

Graphical Functions made from an effortless sketch
1.05 GEEK