sum problem

Hi, how is it possible to write the summation of x (j) ^ n which x (j) is a defined variable over a defined Set and n goes from 0 to c-1 which c is a defined scalar? So how I can define a set for n which it’s elements are equal to 0 up to scalar c-1 and then how to write the summation of x (j) to the power of n, I wrote
Set n /n0=0, n1=1, …/
sum (n, power (x (j), n))
But it is absolutely wrong, thanks for your help

\

Hello,

I would do like that:

n/1*C/ C<- could be any number

SUM(n$(ORD(n) LE C-1), power(x(n),n))

I am not entirely sure if this is what you want, because you have another index/set there, j.
If there is not operation over j, then it is the following:

CON(j)… SUM(n$(ORD(n) LE C-1), power(x(j),n))

I hope that helped you.

Best regards,

Konstantinos

Τη Πέμπτη, 29 Ιανουαρίου 2015 - 11:33:35 μ.μ. UTC, ο χρήστης mahmood golabi έγραψε:

Hi, how is it possible to write the summation of x (j) ^ n which x (j) is a defined variable over a defined Set and n goes from 0 to c-1 which c is a defined scalar? So how I can define a set for n which it’s elements are equal to 0 up to scalar c-1 and then how to write the summation of x (j) to the power of n, I wrote
Set n /n0=0, n1=1, …/
sum (n, power (x (j), n))
But it is absolutely wrong, thanks for your help


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Thanks too much, it was really useful

\