Polynomial expansion from Python to Mathematica

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
confused_engineer
Messages
34
Reaction score
1
Hi everybody.

In Python there is a library called chaospy. One useful command is cp.orth_ttr which generates a polynomial expansion, e. g. a series of orthogonal polynomials or orders zero, one, two... for a random variable e.g normal, uniform...

For more information see https://pypi.python.org/pypi/chaospy/2.0

I use it as shown in the attached image.

Can someone tell me if there exists a way to obtain these same results in Mathematica?https://ibb.co/dEuFQx

Edit: since it seems that the image is not working properly, I also provide a link https://ibb.co/cm2Vsc
 
Physics news on Phys.org
Not sure what your question is. The link to the image doesn't work (as you know) -- my browser says that page doesn't exist. In your other link, your python code has an error, possibly because the matplotlib module hasn't been installed.

If your question is about Mathematica, I'm not knowledgeable to answer that question.