Hi all,

I am just a new user for SymPy. I am self learning this library for my 
undergrauate research. But in the middle of the process I am stucked with 
one code.

So I have  defined a function with a subscript.
    
                         U_n= x^n + 1/x^n

When I consider   (U_1)^3 I get (substitute n=1)

                        (U_1)^3 = (x+1/x)^3

Then after simplifying this I get 
       
                        (U_1)^3 = (x^3 + 1/x^3) + 3(x+ 1/x)      

But one can see this answer as 

                                       (U_1)^3 =   U_3 + 3U_1

How to get the output in terms of U_n 's ?

Can someone please give an idea how to build this code using SymPy. It 
would be a very big help for my research.

Thank you very much.

Gayanath Chandrasena.



            


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/b08dec24-befe-43f9-bff5-7d618be06e22n%40googlegroups.com.

Reply via email to