aboutsummaryrefslogtreecommitdiff
path: root/semestr-2/racket/lista6/lista8/kappa.py
blob: f359d5c228f29c3aeb4230f4b0ebc1d7ec4d26b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pylab 

a = int(input("podaj liczbe: "))
b = int(input("podaj liczbe: "))

x = range(-10, 11) 
y = [] 
for i in x: 
    y.append(a * i + b) 
pylab.plot(x, y) 
pylab.title('Wykres f(x) = a*x - b') 
pylab.grid(True) 
pylab.show()