Consider:
```
>>> from sympy import *
>>> from sympy.stats import *
>>> t = Symbol('t')
>>> n = Uniform('n', 0, 1)
>>> print(density(n + n)(t))
Piecewise((1, (0 <= t/2) & (t/2 <= 1)), (0, True))/2
```
This is a uniform distribution from 0 to 2.
Am I misunderstanding what the sum of two random variables represents in sympy,
or is this totally wrong? I would expect the result to be a triangular
distribution
<https://math.stackexchange.com/questions/357672/density-of-sum-of-two-uniform-random-variables-0-1>.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/e427a523-4fb7-459d-9f7a-a5efc2ca0117%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.