I am trying to find the pdf of the inverse of a random variable X, that represents a distribution I defined. I currently have :
T:=Distribution(PDF=(x->piecewise(0<x and x<1,1/4,3<x and x<5,3/8,0)));
but this seems to be incorrect as I get a message saying T1:=RandomVariable(Y) is being passed a wrong argument.
What is the right way to obtain the pdf of 1/X?