Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
m = 5.98e24/81; % Moon
y_correct = 1e-4; % m
assert(isequal(Schwarzschild_radius(m),y_correct))
|
2 | Fail |
m = 5.98e24; % Earth
y_correct = 0.0089; % m
assert(isequal(Schwarzschild_radius(m),y_correct))
|
3 | Fail |
m = 1.89813e27; % Jupiter
y_correct = 2.819; % m
assert(isequal(Schwarzschild_radius(m),y_correct))
|
4 | Fail |
m = 2e30; % Sun
y_correct = 2970.2416; % m
assert(isequal(Schwarzschild_radius(m),y_correct))
|
Convert a numerical matrix into a cell array of strings
455 Solvers
Magic is simple (for beginners)
2756 Solvers
53 Solvers
find the roots of a quadratic equation
168 Solvers
2145 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!