14 lines
		
	
	
		
			260 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			260 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						||
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()
 | 
						||
"
 |