from matplotlib import pyplot
from Libreria1 import *
import math
def pot (matriz,exp):
    for i in range (1,b):
        res = multiMatrix(matriz,matriz)
    return res

def experimentos(a, b, c):
    r1 = pot(a,c)
    r2 = Accion(r1,b)
    return(res2)
def probabilidad (vector):
    x,y = [],[]
    for i in range (len(vector)):
        a = vector[i]
        y = y + [modulo(a[0],a[1])*100]
    for i in range (len(vector)):
        x = x + [i]
def dibujo():
    pyplot.title("PROBABILIDAD")
    pyplot.bar(x,height=y)
    pyplot.savefig("experimento.png")
    pyplot.show()
