Ask Your Question

srikanth ssk's profile - activity

2023-11-30 05:15:25 +0100 received badge  Famous Question (source)
2020-03-18 14:36:49 +0100 received badge  Popular Question (source)
2020-03-18 14:36:49 +0100 received badge  Notable Question (source)
2014-02-09 10:23:47 +0100 commented answer how to get the Values from an expression

Thank YOU so much!! Could you please tell me where to look for such member functions.. I tried so much to get the rhs of the expression but did not know where to look ! Thanks man!!

2014-02-09 06:10:18 +0100 asked a question how to get the Values from an expression
#Sum of n-th roots of unity is zero.
n=10;
for i in range(1,n):
    v=solve(x^i - 1,x);
    sum_roots = 0;
    m=i;
    for j in range(0,i):
        sum_roots += v[j];  # error here .. I want the values, not the expression
        print ' sum of n-th roots of ' ;
        print m;
        print ' is ';
        print sum_roots ;

How do i get the values from the list of expressions returned by solve? I have another Question-: How can I see all the member functions of any type,say expression..I have tried putting ? sfter the command, but that does not give all the member functions.