improved calc with an easy plot function
modified: .local/bin/dropdowncalc
This commit is contained in:
parent
11c023aade
commit
e997d37346
@ -1,2 +1,13 @@
|
||||
#!/bin/sh
|
||||
ifinstalled python && python -iq -c "print('Welcome to the Calculator'); from numpy import *; import sys; sys.ps1='❯'"
|
||||
ifinstalled python && python -iq -c "print('Welcome to the Calculator')
|
||||
from numpy import *
|
||||
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)
|
||||
plt.show()
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user