Polynomial expansion from Python to Mathematica

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
 
Technology 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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 46 ·
2
Replies
46
Views
9K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 7 ·
Replies
7
Views
17K
  • · Replies 1 ·
Replies
1
Views
4K