# Example 1: Severe Neutropenia (Chemotherapy patient)
# WBC 1.2 k/uL, 20% Segs, 5% Bands
# ANC = 1.2 * (0.20 + 0.05) = 0.3 k/uL (300 cells/uL)
absolute_neutrophil_count(1.2, 20, 5)
# Example 2: Normal
# WBC 6000 cells/uL, 50% Segs, 0% Bands
absolute_neutrophil_count(6000, 50)
Run the code above in your browser using DataLab