def ContinuousRV(symbol, density, set=Interval((- oo), oo)):
 pdf = Lambda(symbol, density)
 dist = ContinuousDistributionHandmade(pdf, set)
 return SingleContinuousPSpace(symbol, dist).value

def ContinuousRV ( symbol , density , set = Interval ( ( - oo ) , oo ) ) : pdf = Lambda ( symbol , density ) dist = ContinuousDistributionHandmade ( pdf , set ) return SingleContinuousPSpace ( symbol , dist ) . value
create a continuous random variable given the following: -- a symbol -- a probability density function -- set on which the pdf is valid returns a randomsymbol .