How to get the logp of a Deterministic RV?

Ok thanks for the answer!