Difference between revisions of "Template:Gr/doc"

From blackwiki
Jump to navigation Jump to search
imported>Ruslik0
(clarification)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(6 intermediate revisions by 5 users not shown)
Line 5: Line 5:
 
This template calculates surface gravity ''g'' of a spherical body of the mass M and radius R:
 
This template calculates surface gravity ''g'' of a spherical body of the mass M and radius R:
  
<math>v2=\frac{G*M}{R^2}</math>.
+
<math>g=\frac{G*M}{R^2}</math>.
  
 
G is the [[gravitational constant]]. The template should be used in the following way:
 
G is the [[gravitational constant]]. The template should be used in the following way:
  
<nowiki>{{Gr|M|R|pre}}</nowiki>,
+
<nowiki>{{Gr|M|R|PRE}}</nowiki>,
  
where M is body's mass in 10<sup>21</sup>&nbsp;kg, R is radius in km and pre is the number of digits after decimal dot in the result. The result is expressed in m/s<sup>2</sup>.
+
where M is body's mass in 10<sup>21</sup>&nbsp;kg, R is radius in km and PRE is the number of digits after decimal dot in the result (default is 3). The result is expressed in m/s<sup>2</sup>.
  
Example (escape velocity of [[Titania (moon)|Titania]]). M=3.526{{Esp|21}}&nbsp;kg. R=788.9&nbsp;km:
+
Example (escape velocity of [[Titania (moon)|Titania]]): M=3.526{{E-sp|21}}&nbsp;kg, R=788.9&nbsp;km.
  
v2={{Gr|3.526|788.9}}&nbsp;m/s<sup>2</sup>.
+
g={{Gr|3.526|788.9}}&nbsp;m/s<sup>2</sup>.
  
 
=== See also ===
 
=== See also ===
 +
* {{tl|V2}} — computes escape velocity.
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
 
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
 
+
[[Category:Astronomy formatting and function templates|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>

Latest revision as of 15:57, 25 April 2020

Usage

This template calculates surface gravity g of a spherical body of the mass M and radius R:

<math>g=\frac{G*M}{R^2}</math>.

G is the gravitational constant. The template should be used in the following way:

{{Gr|M|R|PRE}},

where M is body's mass in 1021 kg, R is radius in km and PRE is the number of digits after decimal dot in the result (default is 3). The result is expressed in m/s2.

Example (escape velocity of Titania): M=3.526 × 1021 kg, R=788.9 km.

g=0.378 m/s2.

See also

  • {{V2}} — computes escape velocity.