Tutorial
-
Upload
guest49ba3c86 -
Category
Technology
-
view
334 -
download
1
description
Transcript of Tutorial
AGENDA
Resolución del proyecto de python aplicada a física
RECOMENDACIONESPoner celulares en silencio
RECOMENDACIONESPoner celulares en silencioNo conversar mientras el expositor está
dando la charla
RECOMENDACIONESPoner celulares en silencioNo conversar mientras el expositor está
dando la charlaSi te da sueño, puedes dormir pero sin roncar
:P
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
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 ‘’
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
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
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
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)
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)
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)
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))
-el segundo paso es : condicionar el problema físico
gravity = 9.8 # m/s**2
-el segundo paso es : condicionar el problema físico
gravity = 9.8 # m/s**2velocity = 25 # m/s
-el segundo paso es : condicionar el problema físico
gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degrees
-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
-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
-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
-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
-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
-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
-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)
-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)
-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
-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
-el tercer paso : condicionar la primera materia
print "initial velocity: " + str(velocity) finished = Falsewhile not finished:
-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
-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
-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
-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
-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)
-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:
-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
-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)
-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)
-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)