File:Gravity well plot.svg
From Wikimedia Commons, the free media repository
Gravity_well_plot.svg (SVG file, nominally 600 × 232 pixels, file size: 365 KB)
[edit] Summary
Graph of gravity well. Above: Distortion of space-time. Below: Gravitational potential function.
Asymptote source code:
import graph3;
typedef real fun(real);
fun Phi(real R, real GM_R, real shift=0) {
return new real(real r) {
real r_R = abs(r) / R;
if (r_R >= 1)
return -GM_R / r_R + shift;
else
return 0.5 GM_R * (r_R^2 - 3) + shift;
};
}
typedef real fun2(pair);
fun2 revolve(fun f) { return new real(pair z) { return f(abs(z)); }; }
size(300,0);
currentprojection=perspective(0,20,4);
add(surface(revolve(Phi(2,7)), nsub=4, (-12,-12), (12,12), nx=20, light=O));
draw(graph(Phi(2,7,-10),-24,24));
[edit] Licensing
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 22:42, 17 September 2007 | 600×232 (365 KB) | AnonMoos (talk | contribs) | (Fixing SVG) | |
| 22:19, 17 September 2007 | 300×116 (376 KB) | BenRG (talk | contribs) | (Asymptote source code: import graph3; typedef real fun(real); fun Phi(real R, real GM_R, real shift=0) { return new real(real r) { real r_R = abs(r) / R; if (r_R >= 1) return -GM_R / r_R + shift; else return 0.5 GM_) |
- Edit this file using an external application (See the setup instructions for more information)
File links
There are no pages that link to this file.
Global file usage
The following other wikis use this file:
- Usage of Gravity well plot.svg on enwiki
- Usage of Gravity well plot.svg on ptwiki