Groovy web console

subscribe to the feed Subscribe
to this
schwartzchild radius calc (via #groovywebconsole)
tweet this snippet Tweet

schwartzchild radius calc

Published 9 months ago by M McConnell with tags blackhole schwartzchild
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
 double mass = 194/2.2;// conv to kg
double g = 6.674e-11; // grav constant
double c = 2.998e+8   // speed of light

rad_sch = (2.0*mass*g)/c; //schwarchild radius

print rad_sch;
// rad_sch = 3.9261E-17 m