Template:Solar radius calculator/doc

This template is primarily used by list of largest stars row to simplify its code and allow for easier updating should values require changing. It calculates the radius of a star in comparison to the Solar radius.

Parameters
This template has one named and up to two unnamed parameters; the named parameter  determines the calculation, while the unnamed parameter(s) are the values to be input into the equation. If the unit is desired, use yes and optional y.

Examples

 * Rcm


 * AD


 * LT using logL


 * LT using L and unit

Values and calculations
All radii, once calculated, are divided by $6.957$ to convert from m to.
 * AD: radius determined from angular diameter and distance
 * $$\delta = 206,265 ~ (d / D) ~ \mathrm{arcseconds} \Longrightarrow d = \frac{\delta * D}{206,265} \Longrightarrow R = \frac{d}{2}$$
 * D is multiplied by $3.086$ to convert from kpc to m


 * L/Teff: radius calculated from bolometric luminosity and effective temperature per the Stefan–Boltzmann law
 * If $$\log L$$ is provided, $$10 ^ {\log L}$$ is used
 * $$L \propto R^2 * T^4 \Longrightarrow R = \sqrt{\frac{L * 3.828 \times 10^{26}}{7.125 \times 10^{-7} * T^4}}$$
 * L is multiplied by $3.828$ to convert from solar luminosity to watts