Satellite Orbiting Earth Code

The code for satellite orbiting Earth is here:



object_pos_init= vector(R,0,0)

object= sphere(pos=object_pos_init,

v_esc= sqrt(2*G*M/R)
 v0= v_esc
 v= vector(0,0.95*v0,0)

T_circ= (2*pi*(R+h)/v0)
 dt= 0.001*T_circ

 p= m*v
 r= (object.pos-Earth.pos)

 while t<10*T_circ:
 F= G*M*m/mag2(r)*(-norm(r))
 p= p+F*dt
 v= p/m
 object.pos = object.pos+v*dt
 r= (object.pos- Earth.pos)
 t= t+dt


Here is how it runs:

Where can I do download Visual Python?

Link 1

Link 2


167 thoughts on “Satellite Orbiting Earth Code

  1. Magnificent goods from you, man. I have remember your stuff previous to and you’re simply too excellent.

    I actually like what you’ve received here, certainly like what you are stating and the way
    through which you say it. You make it entertaining and you still take care of to stay it wise.

    I can’t wait to learn much more from you.
    That is actually a terrific site.

    Liked by 1 person

  2. Have you ever thought about writing an ebook or guest authoring on other websites?
    I have a blog centered on the same topics you discuss and would really
    like to have you share some stories/information. I know my readers would appreciate your work.
    If you’re even remotely interested, feel free to shoot me an e-mail.

    Liked by 1 person

  3. Very good blog you have here but I was wondering if
    you knew of any community forums that cover the same topics discussed here?
    I’d really love to be a part of online community where I can get feedback
    from other knowledgeable people that share the same interest.

    If you have any recommendations, please let me know.
    Cheers! Do visit

    Liked by 1 person

  4. First off I would like to say wonderful blog!
    I had a quick question which I’d like to ask if
    you don’t mind. I was curious to know how you center yourself and clear your thoughts before writing.
    I have had a difficult time clearing my thoughts in getting my thoughts
    out there. I truly do enjoy writing but it just seems like the first 10 to 15 minutes tend to be wasted simply
    just trying to figure out how to begin. Any recommendations or tips?

    Appreciate it!

    Liked by 1 person

  5. I’m extremely impressed with your writing skills as well as with the
    layout on your weblog. Is this a paid theme or
    did you modify it yourself? Anyway keep up the nice quality writing,
    it is rare to see a great blog like this one today.

    Liked by 1 person

    1. This is a free theme. It’s called Rolling. If you need any help with your blog, let me know by shooting a message in the contacts section of my blog.


  6. Thank you for any other informative web site. The place else may just
    I get that type of information written in such an ideal manner?
    I’ve a undertaking that I am simply now running on, and I’ve been on the glance out for such information.


  7. What i do not realize is if truth be told how you are now not really a lot more smartly-liked than you may be now.
    You are so intelligent. You understand thus significantly with regards to this topic, made
    me individually consider it from so many various angles.
    Its like men and women don’t seem to be fascinated except it’s something to accomplish with Woman gaga!
    Your personal stuffs excellent. Always take care of
    it up!

    Liked by 1 person

  8. Thanks for a marvelous posting! I definitely enjoyed reading it, you can be a great author.I will always
    bookmark your blog and may come back in the future. I want
    to encourage one to continue your great posts, have a nice weekend!

    Liked by 1 person

  9. Hmm it appears like your website ate my first comment (it was extremely long) so I guess I’ll
    just sum it up what I wrote and say, I’m thoroughly enjoying your blog.
    I too am an aspiring blog blogger but I’m still new to the whole thing.

    Do you have any points for newbie blog writers? I’d certainly appreciate it.

    Liked by 1 person

  10. I like the valuable information you provide in your articles.
    I’ll bookmark your blog and check again here regularly.

    I am quite certain I’ll learn many new stuff right here!
    Good luck for the next!


  11. why not try here
    Oh my goodness! Impressive article dude! Thank you, However I
    am going through troubles with your RSS. I don’t understand why I
    cannot join it. Is there anyone else having the same RSS problems?
    Anyone that knows the answer will you kindly
    respond? Thanks!!


  12. Hey would you mind stating which blog platform you’re working with?

    I’m planning to start my own blog in the near future but I’m having
    a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout seems different then most blogs and
    I’m looking for something unique. P.S Apologies
    for getting off-topic but I had to ask!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s