um as an exact
    fraction and g is a temporary value used to save work
    for recursive calls.
    r