Tutorial

38

description

video tutorial para pollos

Transcript of Tutorial

Page 1: Tutorial
Page 2: Tutorial

AGENDA

Resolución del proyecto de python aplicada a física

Page 3: Tutorial

RECOMENDACIONESPoner celulares en silencio

Page 4: Tutorial

RECOMENDACIONESPoner celulares en silencioNo conversar mientras el expositor está

dando la charla

Page 5: Tutorial

RECOMENDACIONESPoner celulares en silencioNo conversar mientras el expositor está

dando la charlaSi te da sueño, puedes dormir pero sin roncar

:P

Page 6: Tutorial

RECOMENDACIONESPoner celulares en silencioNo conversar mientras el expositor está

dando la charlaSi te da sueño, puedes dormir pero sin roncar

:PSi hablo muy rápido favor indicármelo para

hablar más lento

Page 7: Tutorial

El ejercicio del proyecto esta basado en principios físicos de matemática

-el primer paso a hacer es : insertar los comandos para representar el ejercicio físico

From visual import ‘’

Page 8: Tutorial

El ejercicio del proyecto esta basado en principios físicos de matemática

-el primer paso a hacer es : insertar los comandos para representar el ejercicio físico

From visual import ‘’scene.width = 800

Page 9: Tutorial

El ejercicio del proyecto esta basado en principios físicos de matemática

-el primer paso a hacer es : insertar los comandos para representar el ejercicio físico

From visual import ‘’scene.width = 800scene.height = 600

Page 10: Tutorial

El ejercicio del proyecto esta basado en principios físicos de matemática

-el primer paso a hacer es : insertar los comandos para representar el ejercicio físico

From visual import ‘’scene.width = 800scene.height = 600

scene.autoscale = 0

Page 11: Tutorial

El ejercicio del proyecto esta basado en principios físicos de matemática

-el primer paso a hacer es : insertar los comandos para representar el ejercicio físico

From visual import ‘’scene.width = 800scene.height = 600

scene.autoscale = 0scene.range = (100,100,100)

Page 12: Tutorial

El ejercicio del proyecto esta basado en principios físicos de matemática

-el primer paso a hacer es : insertar los comandos para representar el ejercicio físico

From visual import ‘’scene.width = 800scene.height = 600

scene.autoscale = 0scene.range = (100,100,100)scene.center = (50,40,0)

Page 13: Tutorial

El ejercicio del proyecto esta basado en principios físicos de matemática

-el primer paso a hacer es : insertar los comandos para representar el ejercicio físico

From visual import ‘’scene.width = 800scene.height = 600

scene.autoscale = 0scene.range = (100,100,100)scene.center = (50,40,0)

ball = sphere(pos=(0,2,0),radius=2, color=color.green)

Page 14: Tutorial

El ejercicio del proyecto esta basado en principios físicos de matemática

-el primer paso a hacer es : insertar los comandos para representar el ejercicio físico

From visual import ‘’scene.width = 800scene.height = 600

scene.autoscale = 0scene.range = (100,100,100)scene.center = (50,40,0)

ball = sphere(pos=(0,2,0),radius=2, color=color.green)ground = box(pos=(50,-1,0),size=(100,2,10))

Page 15: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2

Page 16: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/s

Page 17: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degrees

Page 18: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

Page 19: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp

Page 20: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp# cos = adj / hyp

Page 21: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp# cos = adj / hyp

# therefore

Page 22: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp# cos = adj / hyp

# therefore

# opp = hyp * sin

Page 23: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp# cos = adj / hyp

# therefore

# opp = hyp * sin# adj = hyp * cos

Page 24: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp# cos = adj / hyp

# therefore

# opp = hyp * sin# adj = hyp * cos

VelocityY = velocity * sin(angle)

Page 25: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp# cos = adj / hyp

# therefore

# opp = hyp * sin# adj = hyp * cos

VelocityY = velocity * sin(angle)VelocityX = velocity * cos(angle)

Page 26: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp# cos = adj / hyp

# therefore

# opp = hyp * sin# adj = hyp * cos

VelocityY = velocity * sin(angle)VelocityX = velocity * cos(angle)

seconds = 0

Page 27: Tutorial

-el segundo paso es : condicionar el problema físico

gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degreesangle = angle * (pi/180) # converted to radians

# sin = opp / hyp# cos = adj / hyp

# therefore

# opp = hyp * sin# adj = hyp * cos

VelocityY = velocity * sin(angle)VelocityX = velocity * cos(angle)

seconds = 0dt = .01

Page 28: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished:

Page 29: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

Page 30: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2

Page 31: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2 ballY = 2 + VelocityY * seconds - .5 * gravity * seconds**2

Page 32: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2 ballY = 2 + VelocityY * seconds - .5 * gravity * seconds**2 ballX = VelocityX * seconds

Page 33: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2 ballY = 2 + VelocityY * seconds - .5 * gravity * seconds**2 ballX = VelocityX * seconds

ball.pos = vector(ballX,ballY,0)

Page 34: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2 ballY = 2 + VelocityY * seconds - .5 * gravity * seconds**2 ballX = VelocityX * seconds

ball.pos = vector(ballX,ballY,0)

if ballY - 2 <= 0:

Page 35: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2 ballY = 2 + VelocityY * seconds - .5 * gravity * seconds**2 ballX = VelocityX * seconds

ball.pos = vector(ballX,ballY,0)

if ballY - 2 <= 0: finished = True

Page 36: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2 ballY = 2 + VelocityY * seconds - .5 * gravity * seconds**2 ballX = VelocityX * seconds

ball.pos = vector(ballX,ballY,0)

if ballY - 2 <= 0: finished = True

print "angle thrown: " + str(angle)

Page 37: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2 ballY = 2 + VelocityY * seconds - .5 * gravity * seconds**2 ballX = VelocityX * seconds

ball.pos = vector(ballX,ballY,0)

if ballY - 2 <= 0: finished = True

print "angle thrown: " + str(angle) print "seconds in flight: " + str(seconds)

Page 38: Tutorial

-el tercer paso : condicionar la primera materia

print "initial velocity: " + str(velocity) finished = Falsewhile not finished: rate(100) # go thru the loop no more than 100 times/s seconds += dt

# position equation: y(t) = y0 + v0*t + .5 * a * t**2 ballY = 2 + VelocityY * seconds - .5 * gravity * seconds**2 ballX = VelocityX * seconds

ball.pos = vector(ballX,ballY,0)

if ballY - 2 <= 0: finished = True

print "angle thrown: " + str(angle) print "seconds in flight: " + str(seconds) print "distance in the x direction: " + str(ballX)