Check out example codes for ""A neutron star's immense gravitational attraction is due primarily to its small radius and"". It will help you in understanding the concepts better.
Code Example 1
large mass
Learn ReactJs, React Native from akashmittal.com