Aller au contenu

Toutes les fonctions de 1ère année

Télécharger le fichier

import numpy as np
import math
import fractions
import random as rd
import matplotlib.pyplot as plt


abs
min
max
sum
round
int
float
str
bool
list
input
eval
print
len
list.append
list.copy
list.index
list.count
list.pop
list.remove
list.reverse
list.sort
list.insert

np.exp
np.log
np.log2
np.log10
np.pi
np.arange
np.linspace
np.size
np.shape
np.array
np.dot
np.eye
np.ones
np.zeros
np.array(...).T
np.linalg.det
np.linalg.inv

math.factorial
math.log
math.log2
math.log10
math.pi
math.exp
math.sqrt
math.sin
math.cos
math.tan
math.floor
math.ceil

fractions.Fraction
fractions.Fraction(...).numerator
fractions.Fraction(...).denominator

rd.random
rd.randint
rd.choice # Pas dans le programme mais très utile, permet de choisir un élément au hasard dans une liste

plt.plot
plt.scatter
plt.bar
plt.title
plt.xlabel
plt.ylabel
plt.grid
plt.legend
plt.show