mhk

12 Reputation

2 Badges

15 years, 241 days

MaplePrimes Activity


These are replies submitted by mhk

Thanks djc

The "with student" was partly the trick.

But the result also depends on whether you expand a "sum" or a "Sum".

"with student" AND "Sum" works as I would like it to.

The expansion of "sum"  is strange both with and without "student".

Try this:
> restart;

> sum((x[i]-k)^2, i = 1 .. n);
> expand(%);
> Sum((x[i]-k)^2, i = 1 .. n);
> expand(%);

> with(student);
> sum((x[i]-k)^2, i = 1 .. n);
> expand(%);
> Sum((x[i]-k)^2, i = 1 .. n);
> expand(%);

Unfortunately "sum" is what you get when you are using the GUI's "expression" tool for sum.

Life is not easy for a newbie. But who says it should be ?

 

Morten
 

 

Thanks djc

The "with student" was partly the trick.

But the result also depends on whether you expand a "sum" or a "Sum".

"with student" AND "Sum" works as I would like it to.

The expansion of "sum"  is strange both with and without "student".

Try this:
> restart;

> sum((x[i]-k)^2, i = 1 .. n);
> expand(%);
> Sum((x[i]-k)^2, i = 1 .. n);
> expand(%);

> with(student);
> sum((x[i]-k)^2, i = 1 .. n);
> expand(%);
> Sum((x[i]-k)^2, i = 1 .. n);
> expand(%);

Unfortunately "sum" is what you get when you are using the GUI's "expression" tool for sum.

Life is not easy for a newbie. But who says it should be ?

 

Morten
 

 

Page 1 of 1