Jump to content

Template talk:Solar radius calculator

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Suggestion

[edit]

Add support for margin of error for any of the input values, and then it should calculate the corresponding margin of error for the radius. Nussun05 (talk) 07:42, 29 September 2021 (UTC)[reply]

Should be possible; I'll have a think about the best way to implement. Primefac (talk) 18:02, 2 October 2021 (UTC)[reply]
Aaaaand I just remembered that uncertainties for all but the most trivial of functions (i.e. Rcm and the like) are hella complicated. If someone wants to do the math to find the equation needed for L/Teff I am happy to code it. Primefac (talk) 21:05, 2 October 2021 (UTC)[reply]
I have the error propagation equation for L/Teff: np.sqrt(sigma_L**2 / (16*np.pi * const.sigma_sb * L * T**4) + L*sigma_T**2 / (np.pi * const.sigma_sb * T**6)). Sigma L and sigma T are the errors in L and T, sigma sb is the Stefan-Boltzmann constant, the rest should be obvious enough. VY Canis Majoris (talk) 11:32, 27 May 2022 (UTC)[reply]
Other than "np" and the ** notation... is the latter supposed to be ^ i.e. "to the power of"? Primefac (talk) 11:34, 27 May 2022 (UTC)[reply]
Yup, by the way I just copied this code from my python script and I was too lazy to edit. VY Canis Majoris (talk) 11:38, 27 May 2022 (UTC)[reply]
Meanwhile, I'm too lazy to check through every value we have that has an error to check the maths, but I'm not seeing any papers with L, they're all log(L)... Primefac (talk) 12:30, 27 May 2022 (UTC)[reply]
[1] uses error that's not in log. VY Canis Majoris (talk) 12:44, 27 May 2022 (UTC)[reply]
Replacing L with 10^logL and Lerr with 10^logL*ln(10)*logLerr should work. VY Canis Majoris (talk) 12:52, 27 May 2022 (UTC)[reply]
By the way, better check if either error is given, not just if luminosity error is given. VY Canis Majoris (talk) 13:07, 27 May 2022 (UTC)[reply]
Either way I don't think your formula is correct; {{Solar radius calculator/sandbox|310000|3000|Lerr=70000|type=LT}} → 2,060 ± 233 clearly doesn't make any sense. Primefac (talk) 13:15, 27 May 2022 (UTC)[reply]
Need to convert units properly. VY Canis Majoris (talk) 13:16, 27 May 2022 (UTC)[reply]
Maybe try giving an explanation instead of being cryptic? Last I checked (3.1 ± 0.7) × 105 matches what I placed in the calc above. Primefac (talk) 13:19, 27 May 2022 (UTC)[reply]
The luminosity needed to be converted to watts and the radius to Rsol from meters, sorry I didn't make this clear. VY Canis Majoris (talk) 13:23, 27 May 2022 (UTC)[reply]
It's fine; I probably should have read my own damn /doc! :-p Primefac (talk) 16:57, 27 May 2022 (UTC)[reply]

Add parameter for rounding

[edit]

It is pretty much necessary for all smaller stars to have less rounding than to the nearest Rsol. A parameter for the amount of digits to round to would be nice for this. nussun (talk) 12:45, 14 March 2022 (UTC)[reply]

Bolometric magnitude

[edit]

The template could have a mode of TMbol, using the temperature and absolute bolometric magnitude. 21 Andromedae (talk) 18:45, 15 September 2024 (UTC)[reply]

What would that calculation look like? Primefac (talk) 13:36, 16 September 2024 (UTC)[reply]
Calculating the bolometric magnitude to a luminosity uses this equation:
100.4 • (4.74−Mbol) 21 Andromedae (talk) 14:41, 16 September 2024 (UTC)[reply]
Sorry, I think I misspoke; when is the solar radius calculated using the bolometric magnitude as opposed to the luminosity? And, further to your answer above, is that L that is equal to that statement? Primefac (talk) 15:07, 16 September 2024 (UTC)[reply]