Problem 1382. Schwarzschild radius
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
-
3 Comments
James
on 25 Mar 2013
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.
Claudio Gelmi
on 2 Apr 2013
Thanks James and Vitor for noticing the mistake! All fixed and rescored...
Christian Schröder
on 3 Nov 2022
The problem doesn't mention it, but you should round the result to four decimal digits.
Solution Comments
Show commentsProblem Recent Solvers50
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15638 Solvers
-
Create a square matrix of multiples
482 Solvers
-
5741 Solvers
-
351 Solvers
-
Sum of the Multiplication of Vectors
274 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!