5 6 ground-box (pos-vector(0,0,0), size-vector (10,0.2,1), color-color.green) ball-sphere(pos-vector(-4.5,0,0), radius=0.2, color=color.yellow) 7 g-vector(0, -9.8,0) 8 v0-12 9 theta 45 pi/180 10 11 ball.m-0.5 12 ball.v-ve vector (cos(theta), sin(theta), 0) ball.p-ball.m"ball.v 3 14 C-0.47 15 rho-1.4 6 A-pi ball.radius**2 17 18 t=0 19 dt-0.001 20 21 attach_trail (ball) 22 23 24 while ball.pos.y>=0: rate (1000) #change this Force equation 25 26 F-ball.m*g-.5 rho*A*C*mag(ball.p/(ball.m**2))*ball.p 27 ball.p-ball.p+Fodt 28 29 30 31 print (ball.pos) 32 print ((ball.p)/(ball.m)) 33 print (F/(ball.m)) 34 ball.pos-ball.pos+ball.p*dt/ball.m t=t+dt
5 6 ground-box (pos-vector(0,0,0), size-vector (10,0.2,1), color-color.green) ball-sphere(pos-vector(-4.5,0,0), radius=0.2, color=color.yellow) 7 g-vector(0, -9.8,0) 8 v0-12 9 theta 45 pi/180 10 11 ball.m-0.5 12 ball.v-ve vector (cos(theta), sin(theta), 0) ball.p-ball.m"ball.v 3 14 C-0.47 15 rho-1.4 6 A-pi ball.radius**2 17 18 t=0 19 dt-0.001 20 21 attach_trail (ball) 22 23 24 while ball.pos.y>=0: rate (1000) #change this Force equation 25 26 F-ball.m*g-.5 rho*A*C*mag(ball.p/(ball.m**2))*ball.p 27 ball.p-ball.p+Fodt 28 29 30 31 print (ball.pos) 32 print ((ball.p)/(ball.m)) 33 print (F/(ball.m)) 34 ball.pos-ball.pos+ball.p*dt/ball.m t=t+dt
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
I need help deciphering some code that contains physics equations. We are asked to change the force equation (circled in yellow) to eliminate air resistance. I'm not sure how to rewrite the equation. Please help. *see image
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 11 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education