Program for plotting 2D & 3D functions from direct input, written in Python 3 for Linux terminal. Uses matplotlib and numpy libraries.
In terminal/cmd prompt, clone the repository into you desired location:
foo@bar:~$ git clone https://github.com/Shellywell123/Function_Plotter.git
Navigate to program directory:
foo@bar:~$ cd Function_Plotter/
In terminal/cmd prompt, pull the latest version:
foo@bar:~$ git pull
For 2D functions, in terminal/cmd prompt, execute 'run2d.py' with python 3:
foo@bar:~$ python3 run2d.py
For 3D functions, in terminal/cmd prompt, execute 'run3d.py' with python 3:
foo@bar:~$ python3 run3d.py
-
Supports 2D and 3D functions
-
Supports many mathematical functions:
sin
,cos
,tan
,arcsin
,arccos
,arctan
sinh
,cosh
,tanh
,arcsinh
,arccosh
,arctanh
log
,log10_
abs
sqrt
x^n
,x**n
-
Supports many mathematical constants:
pi
e
i
-
Supports multiple input forms:
y = f(x,z)
,y = f(x)
,y = f(z)
x = f(y,z)
,x = f(y)
,x = f(z)
z = f(x,y)
,z = f(x)
,z = f(y)
-
User inputted funtion limits
- e.g
y = 4x + 1 #0<x<4
- e.g
-
Can input multiple functions at a time
- e.g
y = 4x + 1, x = -y + 7
- e.g
-
Library of functions that can be added to and called with direct aliases:
- Library's current contents:
- Letters:
B
,C
,E
,F
,H
,L
,N
,T
,Z
- Logos:
batman
,heart
- Letters:
- See examples below to see how they can be called
- Library's current contents:
-
Coming Soon
- Parametric equations
- Planes and vectors
- Polar, Cylindrical, Spherical and Toroidal
- Complete library of letters and numbers plotted in 2d-3d, allowing words and simple sentences to be graphed.
- Some features break after one false input
In terminal/cmd prompt:
foo@bar:~$ python3 run3d.py
input your function:
>> z = x*sin(y)**2
output:
In terminal/cmd prompt:
foo@bar:~$ python3 run3d.py
input your function:
>> batman
output:
In terminal/cmd prompt:
foo@bar:~$ python3 run2d.py
input your function:
>> y=1 #-1<x<1, y=-1 #-1<x<1, x=1 #-1<y<1, x=-1 #-1<y<1
In terminal/cmd prompt:
foo@bar:~$ python3 run3d.py
input your function:
>> y=z,y=-z,y=x,y=-x,z=x,z=-x
In terminal/cmd prompt:
foo@bar:~$ python3 run2d.py
input your function:
>> y=x, y=(i**2)*x
output: