(12C) Body Surface Area
|
07-28-2021, 09:01 PM
(This post was last modified: 07-28-2021 09:22 PM by C.Ret.)
Post: #2
|
|||
|
|||
RE: (12C) Body Surface Area
(07-28-2021 04:34 AM)Gamo Wrote: The calculation is from the formula of DuBois D, DuBois EF. 1916 Effectively, the original formula from Delafield DuBois et Eugene F. DuBois publication is \( A = 0.007184 \times H^{0.725} \times W^{0.425} \). If we are looking for the decimal logarithm of \(A \) we get the exact formula that Gamo indicates ; \( \log(A) = 0.425\times\log(W)+0.725\times\log(H)-2.14363 \) where \( -2.14363 \approx \log(0.007184) \) The only problem here is that there is no decimal logarithm on the HP-12C keyboard. So in the code proposed by Gamo, several divisions by natural logarithm \( \ln(10) \) are used as a turn around to get the expected \( A = 10^{(0.425\frac{\ln(W)}{\ln 10 }+0.725\frac{\ln(H)}{\ln 10 }- 2.144)}\). In order to spare steps and ease computation, I propose to directly compute the body area using the original formula. Code: Code: 001- .725 y^x Usage: Press P/R to type the code in program memory. Go back to run mode and reset program to the start by pressing [GTO] 00 or [f][Program]. For each computation : Type in Weight (in Kg) and press the [ENTER^] key. Type in Height (in cm) and presse the [ R/S ] key to run code. The HP-12C display the corresponding Body Surface Area in m². This shorter code don't use any register or any logarithms. In fact, the logarithms stuff is done secretly by the y^x instructions. Notice how old style RPN code are strange and 'reversed' as the second entered argument is treated first in the beginning of the code and the first entered argument is used last ! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C) Body Surface Area - Gamo - 07-28-2021, 04:34 AM
RE: (12C) Body Surface Area - C.Ret - 07-28-2021 09:01 PM
RE: (12C) Body Surface Area - Gamo - 07-29-2021, 12:24 AM
RE: (12C) Body Surface Area - Albert Chan - 07-29-2021, 10:38 AM
RE: (12C) Body Surface Area - C.Ret - 07-30-2021, 02:10 PM
|
User(s) browsing this thread: 2 Guest(s)