I'm pretty new to this but i am making a program to simulate gravitationally interacting bodies. So i have 100 bodies all the same mass and i want to append it so that i have 100 bodies all the same mass and 3 bodies with 100xthe original mass i f you catch my drift? (they are to simulate dense regions such as black holes). my original code looks like this:
mass=2e30*N.one s((100,1))
and i want the new array to be 103...
User Profile
Collapse
-
charl vallily started a topic How to append array:mass=2e30*N.ones((100,1)) to have 3 more bodies with mass 2e32?in PythonHow to append array:mass=2e30*N.ones((100,1)) to have 3 more bodies with mass 2e32?
No activity results to display
Show More