2020-07-04 14:23:27 +02:00
|
|
|
|
#!/bin/sh
|
2020-08-17 15:15:35 +02:00
|
|
|
|
ifinstalled python && python -iq -c "print('Welcome to the Calculator')
|
|
|
|
|
from numpy import *
|
2020-08-17 18:28:13 +02:00
|
|
|
|
|
2020-08-17 15:15:35 +02:00
|
|
|
|
import sys
|
|
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
sys.ps1='❯'
|
|
|
|
|
|
|
|
|
|
def plot(a, b, f):
|
|
|
|
|
x = linspace(a, b, 1000)
|
|
|
|
|
y = eval(f)
|
|
|
|
|
plt.plot(x, y)
|
2020-08-17 18:28:13 +02:00
|
|
|
|
plt.xlabel('x')
|
|
|
|
|
plt.ylabel(f)
|
2020-08-17 15:15:35 +02:00
|
|
|
|
plt.show()
|
|
|
|
|
"
|