Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone please plot this using matplotlib #step 3 code and testing def simSatelliteWithThrust (initialvelocity, totalTime, timeStep, thrustForce) : elapsedTime=[0] velocity=[initialvelocity] thruster_Time= 27 thruster_Fire= 1.3

can someone please plot this using matplotlib

image text in transcribed
#step 3 code and testing def simSatelliteWithThrust (initialvelocity, totalTime, timeStep, thrustForce) : elapsedTime=[0] velocity=[initialvelocity] thruster_Time= 27 thruster_Fire= 1.3 for x in np. arange ( timeStep, totalTime, timeStep) : if x % thruster_Time == 0: velocity_change= (thrustForce/1000) /1000 velocity [-1] += velocity_change I for thruster_x in np. arange( x, x + thruster_Fire, timeStep) : elapsedTime . append ( thruster_x) velocity . append ( velocity [-1] ) elapsedTime . append (x) velocity . append ( velocity [-1] ) return elapsedTime, velocity elapsedTime, velocity= simSatelliteWithThrust(initialvelocity, totalTime, timeStep, thrustForce) initialvelocity=[20] elpasedTime= [0]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions