Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1) x= 6
y=2.5
z='cadena de caracteres'
print(x)
print(y)
print(z)
4) numeros=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ]
for x in numeros:
x*=2
print(x)
UTN-Facultad Regional Delta Alumno
Cálculo numérico 2ºQ 2021 Profesor:
Darío Huggenberger
TP N°0 – Iniciándonos en Esteban Atencio Ayudante:
Andrés Aguilar
Python
5) x= 1
while x < 10:
x +=1
if x==3:
continue
if x==9:
break
print(x)
print('termino el bucle')
6) import numpy as np
np.pi
7) Código 1:
intervalo= np.array([0, 1])
def ReValorar(intervalo):
extension=intervalo*3
return np.clip(extension, intervalo, 10)
nintervalo= ReValorar(intervalo)
intervaloydif= np.append(nintervalo, 0.01)
print(intervaloydif)
Código 2:
from google.colab import files
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
x = np.arange(0, 3, 0.01)
y = (x*x)+10
fig, ejes = plt.subplots()
ejes.plot(x, y)
ejes.set(xlabel='ultimos 3 meses', ylabel='casos por dia',
title='covid-19 en Lima')
ejes.grid()
fig.savefig("Figura t.p.0.jpg")
files.download('Figura t.p.0.jpg')
plt.show()
UTN-Facultad Regional Delta Alumno
Cálculo numérico 2ºQ 2021 Profesor:
Darío Huggenberger
TP N°0 – Iniciándonos en Esteban Atencio Ayudante:
Andrés Aguilar
Python
Vinculo:
https://colab.research.google.com/drive/1bA3BpE9Qq95xdBK7wopzZdEUUgDTlG
9m?usp=sharing