Paul Weiss

56 Reputation

4 Badges

18 years, 168 days

MaplePrimes Activity


These are questions asked by Paul Weiss

Hello,

I have created a module which implements several high-level procedures. Each of these call low-level procedures which are - in principle - of no interest to the end user.

Now, when I use the "module:-function()" syntax, everything seems OK. However, when I write this module as a package, using "savelib", and I try loading it back, and using it, the low-level procedures are returned unevaluated. Which obviously is not what I want...

Is there a way to force this evaluation?

I would like to simplify (automatically...) a sum containing constant terms, as in the trivial one:

Sum((A*x[i]+B)^2, i = 1 .. n) = A^2*(sum(x[i]^2, i = 1 .. n))+2*A*B*(sum(x[i], i = 1 .. n))+n*B^2

I can reach this result easily enough by:

- Using the "student" package

- Then expressing the sum underits inert form (Sum(...))

- Expanding it

- Taking its value.

Now the "student" package is "deprecated".... How can I do this without it?

 

Page 1 of 1