Check window size
Initialize math library when invoking bc
Move cdf to other cd related functions