Post Reply 
(41C) Friedewald Formula for LDL-cholesterol
03-05-2019, 07:16 PM
Post: #2
RE: (41C) Friedewald Formula for LDL-cholesterol
(03-03-2019 06:51 PM)Gene Wrote:  The limitation: Triglycerides > 400 mg/dL and Nephrotic Syndrome .

I am by no means an expert on this topic, but as far as I can see these conditions must not apply.
So the limitations are: triglycerides < 400 mg/dl and no Nephrotic Syndrome.

(03-03-2019 06:51 PM)Gene Wrote:  01 LBL "LDL CHOLEST"

HP-41 labels cannot not be longer than seven characters. So there is no way to enter this line.

I tried an improved version of this program which addresses some problems of the one above. For instance the text prompts are too long so that they scroll through the display. Which is almost as annoying as the two beeps (yes, I think I said that before ;-)). And there is no warning if the triglycerides value is not below 400 mg/dl.

Here is how I would do it:

Code:
01 LBL "LDL"
02 "TOT-C MG/DL?"
03 PROMPT
04 "HDL-C MG/DL?"
05 PROMPT
06 -
07 "TRIGL MG/DL?"
08 PROMPT
09 400
10 X>Y?
11 GTO 01
12 R↓
13 "MUST BE <400"
14 GTO 02
15 LBL 01
16 R↓
17 5
18 /
19 -
20 FIX 0
21 "LDL-C= "
22 ARCL X
23 FIX 4
24 LBL 02
25 AVIEW
26 END

Example:
(don't know if the values make sense, but anyway....)

Code:
               XEQ "LDL"

TOT-C MG/DL?   400 [R/S]
HDL-C MG/DL?   300 [R/S]
TRIGL MG/DL?   200 [R/S]

LDL-C= 60.

But now... what about a complete cholesterol solver? Enter any three of the total, HDL and LDL cholesterol and the triglycerides values and have the fourth one calculated. Should be easy to do. ;-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (41C) Friedewald Formula for LDL-cholesterol - Dieter - 03-05-2019 07:16 PM



User(s) browsing this thread: 1 Guest(s)