Finish converting calc_rat module to F#.

Signed-off-by: Eric G Taucher <researcher0x00@gmail.com>