Here is Canvas object wihch demonstrate the problem.

These three cases are used to compute the beam slope and deflection at C for the configuration shown above.