Está en la página 1de 2

13/9/22, 20:00 Untitled1.

ipynb - Colaboratory

>>> numeros=[6,2,3,9,13]
>>> numeros.sort()
>>> numeros
import numpy as np
from scipy import stats
mediana=np.median(numeros)
print(mediana)
print(numeros)

6.0
[2, 3, 6, 9, 13]

numero=("ingresar numero")
def generar_multiplos(numero,n):
return [numero* i for i in range(1,n+1)]
print(generar_multiplos(2,4))

[2, 4, 6, 8]
Código Texto

import numpy as np
a=float(input("Ingrese un número:"))
b=float(input("Ingrese un número:"))
c=float(input("Ingrese un número:"))
d=float(input("Ingrese un número:"))
A=np.array([[a,b],[c,d]],float)
print("A=")
print(A)
Determinante=np.linalg.det(A)
print("detA=",Determinante)
Trans=np.transpose(A)
print("Transpuesta=")
print(Trans)

Ingrese un número:5
Ingrese un número:9
Ingrese un número:12
Ingrese un número:6
A=
[[ 5. 9.]
[12. 6.]]
detA= -78.0
Transpuesta=
[[ 5. 12.]
[ 9. 6.]]

https://colab.research.google.com/drive/1uocpXREbDCPrTrxz7cqHXKOmstuTUJP0?hl=es#scrollTo=-tzuZq75fYzK&printMode=true 1/2
13/9/22, 20:00 Untitled1.ipynb - Colaboratory

Productos de pago de Colab - Cancelar contratos

check 22 s completado a las 20:00

https://colab.research.google.com/drive/1uocpXREbDCPrTrxz7cqHXKOmstuTUJP0?hl=es#scrollTo=-tzuZq75fYzK&printMode=true 2/2

También podría gustarte