Using V-Python GlowScript

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Using V-Python GlowScript

Post by answerhappygod »

Using V-Python GlowScript
Using V Python Glowscript 1
Using V Python Glowscript 1 (44.02 KiB) Viewed 38 times
Write a computer program to model the motion of Mars around the Sun. Use the known period of Mars's orbit to determine an initial approximate velocity. Display a trail so you see the shape of the orbit. Create spheres representing Mars and the Sun. consider the orbital period T-687*24*3600 #s. Calculate the initial momentum of Mars, consider the speed =2* pi*R/T. Initiate a while loop with rate (500). Calculate, and update the force, momenta, and the positions Note: Mars (Mass= 0.642e24 kg, R= 2.288e11 # Orbital radius in m (assuming a circular orbit), radius= 0.05*R), G= 6.67e-11) Sun (Mass= 2e 30 kg, radius= 0.05*R)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply