-- -*- M2-comint -*- hash: 15704982540715681604

i1 : X = continuousProbabilityDistribution(x -> 2 * x, Support => (0, 1))

o1 = a continuous probability distribution

o1 : ContinuousProbabilityDistribution

i2 : density_X 0.75

o2 = 1.5

o2 : RR (of precision 53)

i3 : density_X 2

o3 = 0

i4 : probability_X 0.75

o4 = .5625

o4 : RR (of precision 53)

i5 : quantile_X 0.5625

o5 = .75

o5 : RR (of precision 53)

i6 : random X

o6 = .9448342933270943

o6 : RR (of precision 53)

i7 : X = continuousProbabilityDistribution(x -> 2 * x, Support => (0, 1),
         DistributionFunction => x -> x^2,
         QuantileFunction => p -> sqrt p,
         Description => "triangular distribution")

o7 = triangular distribution

o7 : ContinuousProbabilityDistribution

i8 : 
