I have the term

z^3 +2z^2 -2z / (z-1) (z-1/2)^2

i am doing it like this way

A/(z-1) + B/(z-1/2) + C/(z-1/2)^2

I got the answer of A and C which comes to be 4 and 3/4

How to calculate B and are above answers correct

Can i check partial fraction in MATLAB