pyfunction

Library to plot linear functions


Keywords
Math, Plot, Function
License
MIT
Install
pip install pyfunction==0.002

Documentation

pyfunction

Library for plotting 1st degree functions (linear) and calculating the Angular coefficient. Recommended to integrate in order of services and other scientific applications.

Remember to use this Importation:

from pyfunction.pyfunction import Linear,Show

To build a chart, you must first set a scale on the Cartesian plane from x to x.

Example: -5 x 10

Once done, consider a linear function.

Example: 2x + 3x + 2.

You must transform this function to become readable.

Readable Function: 2 * x + 3 * x + 2

Going straight to the graph, use the Linear () argument to construct it. Example:

Linear('-5 x 10', '2*x+3*x+2')

You're almost there, to evoke the graphical application, use the Show () argument. Example:

Show('plot')

The final archive would look like this:

from pyfunction.pyfunction import Linear,Show

Linear('-5 x 10', '2*x+3*x+2')
Show('plot')