Tutorial
-
Upload
guest49ba3c86 -
Category
Technology
-
view
334 -
download
1
description
Transcript of Tutorial
![Page 1: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/1.jpg)
![Page 2: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/2.jpg)
AGENDA
Resolución del proyecto de python aplicada a física
![Page 3: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/3.jpg)
RECOMENDACIONESPoner celulares en silencio
![Page 4: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/4.jpg)
RECOMENDACIONESPoner celulares en silencioNo conversar mientras el expositor está
dando la charla
![Page 5: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/6.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/7.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/8.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/9.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/10.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/11.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/12.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/13.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/14.jpg)
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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/15.jpg)
-el segundo paso es : condicionar el problema físico
gravity = 9.8 # m/s**2
![Page 16: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/16.jpg)
-el segundo paso es : condicionar el problema físico
gravity = 9.8 # m/s**2velocity = 25 # m/s
![Page 17: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/17.jpg)
-el segundo paso es : condicionar el problema físico
gravity = 9.8 # m/s**2velocity = 25 # m/sangle = 45 # degrees
![Page 18: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/18.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/19.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/20.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/21.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/22.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/23.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/24.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/25.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/26.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/27.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/28.jpg)
-el tercer paso : condicionar la primera materia
print "initial velocity: " + str(velocity) finished = Falsewhile not finished:
![Page 29: Tutorial](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/29.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/30.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/31.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/32.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/33.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/34.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/35.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/36.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/37.jpg)
-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](https://reader036.fdocuments.ec/reader036/viewer/2022062418/5561340bd8b42a263b8b4873/html5/thumbnails/38.jpg)
-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)