Template talk:Solar radius calculator
Appearance
(Redirected from Template talk:Solar radius calculator/doc)
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
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)
- Should be possible; I'll have a think about the best way to implement. Primefac (talk) 18:02, 2 October 2021 (UTC)
- 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)
- 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)- 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)
- 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)
- 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)
- [1] uses error that's not in log. VY Canis Majoris (talk) 12:44, 27 May 2022 (UTC)
- Replacing L with
10^logL
and Lerr with10^logL*ln(10)*logLerr
should work. VY Canis Majoris (talk) 12:52, 27 May 2022 (UTC)- 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)
- 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)- Need to convert units properly. VY Canis Majoris (talk) 13:16, 27 May 2022 (UTC)
- 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)
- 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)
- It's fine; I probably should have read my own damn /doc! :-p Primefac (talk) 16:57, 27 May 2022 (UTC)
- 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)
- 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)
- Need to convert units properly. VY Canis Majoris (talk) 13:16, 27 May 2022 (UTC)
- Either way I don't think your formula is correct;
- 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)
- 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)
- 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)
- 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)
- I have the error propagation equation for L/Teff:
- 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)
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)