Compute the Schwarzschild radius for objects of mass m (kg). Use c = 299,792.458 km/s and G = 6.6738*10^-11 N*(m/kg)^2. Your function should give the result in m.
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers60
Suggested Problems
-
Remove all the words that end with "ain"
2742 Solvers
-
Sum of first n terms of a harmonic progression
527 Solvers
-
Make a random, non-repeating vector.
12020 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1313 Solvers
-
568 Solvers
More from this Author13
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Please check the answers for the test suite, as I think there may be a unit discrepancy here with c in km/sec and G in N*(m/kg)^2.
Thanks James and Vitor for noticing the mistake! All fixed and rescored...
The problem doesn't mention it, but you should round the result to four decimal digits.
c given in km/s is still wrong.