# Example 1: Normal Heart Rate
# QT 400 ms, HR 60 bpm (RR = 1 sec)
# All formulas should yield approx 400 ms
calculate_qtc(400, 60)
# Example 2: Tachycardia
# QT 320 ms, HR 100 bpm
# Bazett overcorrects compared to others
calculate_qtc(320, 100)
Run the code above in your browser using DataLab