repl.it
@pbcan/

console

Python

No description

fork
loading
Files
  • main.py
  • graphique.png
main.py
1
2
3
4
5
6
7
8
9
10
11
from math import *
from matplotlib.pyplot import *
from numpy import *
def f(x):
  return x**2
A=[i for i in arange(-4,4,1)]
#arange = s'organiser
B=[f(i) for i in arange(-4,4,1)]
plot(A,B,'o')
axis([-4,4,-1,17])
savefig("graphique.png")