Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
data science
#1
I have a dataframe with billions of stars, and i would like to narrow it down using equations. I need to find which stars are moving at escape velocity from their galactic coordinates in order to find which objects will have a significant enough gravitational pull on the star to alter its course so it has to be moving at the proper 3 dimensional velocity. My friend is working on the galactic coordinates equation and i am new to python and need to plug the formula into the dataframe could somebody show how to put an equation in to python with multiple steps.

The equation would be a basic 3d velocity equation which i would explain but the equation looks like this apparently but we do not have the end position. x y and z are different vectors like tangential velocity, radial velocity etc
dx = endPosition.x - startPosition.x
dy = endPosition.y - startPosition.y
dz = endPosition.z - startPosition.z


d = sqrt(dx*dx + dy*dy + dz*dz)

vx = dx/d * missileSpeed
vy = dy/d * missileSpeed
vz = dz/d * missileSpeed
Reply
#2
something like this? https://matplotlib.org/mpl_toolkits/mplo...ver%20plot
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Data Science Oshadha 2 1,233 Jun-30-2022, 04:59 PM
Last Post: Larz60+
  Data Science - "key of type tuple not found and not a MultiIndex" priyanshuaggarwal 0 5,117 Nov-07-2021, 11:22 PM
Last Post: priyanshuaggarwal
  Networkx / Data Science IamAlbert 0 1,613 Sep-11-2020, 05:33 PM
Last Post: IamAlbert
  What good book in Data science ? bashar 0 1,775 Apr-14-2020, 03:29 AM
Last Post: bashar
  WGET + Data Science + Python Programs BrandonKastning 0 1,610 Mar-29-2020, 06:43 PM
Last Post: BrandonKastning
  Data science with Python - links with exercises darpInd 1 1,968 Mar-02-2020, 04:24 PM
Last Post: Larz60+
  Softwares to learn data science jk91 2 2,302 Feb-26-2020, 07:17 PM
Last Post: jefsummers
  Data Science Project DaisyPJ 3 2,684 Jan-19-2020, 07:05 PM
Last Post: jefsummers
  Nvidia or (25% better for the price) Radeon GPU for Python Data Science gheek 0 1,656 Dec-11-2019, 05:19 PM
Last Post: gheek
  Python for Enterprise Data Science paripy 3 2,752 May-03-2019, 05:37 AM
Last Post: directnirvana

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020