Re: how to simplify sums with constant subterms?

Barton Willis via Maxima-discuss <[email protected]>
Newsgroups gmane.comp.mathematics.maxima.general
Message-ID <SN6PR07MB7952B6E97E3809DECA03797AB6A72@SN6PR07MB7952.namprd07.prod.outlook.com>
Not so easy to find in the user documentation, I think:


(%i1) display2d : false$

(%i2) declare(sum,linear)$

(%i3) sum(x + a[i], i, 1, n);

(%o3) n*x+'sum(a[i],i,1,n)
(%i4)


If you all have more questions, please ask.  Also, if you search the mailing list archives, I think you will find other references to Maximum Likelihood Estimation.

--Barton
________________________________
From: Claude Heiland-Allen <[email protected]>
Sent: Monday, August 17, 2026 5:34 AM
To: Maxima-discuss <[email protected]>
Subject: [Maxima-discuss] how to simplify sums with constant subterms?

Caution: Non-NU Email


Dear list,


Maxima simplifies

sum(x, i, 1, n)

to

n * x

which is great.


But I have not figured out how to get Maxima to simplify

sum(x + a[i], i, 1, n)

to

n * x + sum(a[i], i, 1, n)


Any ideas/suggestions?


(This is in the context of Maximum Likelihood Estimation, where
eventually I want to solve more complicated equations for x given n and
a[i].)


Thanks,


Claude
--
https://urldefense.com/v3/__https://mathr.co.uk__;!!PvXuogZ4sRB2p-tU!AZ2EYnuZsjs_M9d2Z_IurRo5q8a-9JGlVyLUu8D3qvQm5CEC06sCP72xFOFw4IP1aLuJep7mEscKBfE$



_______________________________________________
Maxima-discuss mailing list
[email protected]
https://urldefense.com/v3/__https://lists.sourceforge.net/lists/listinfo/maxima-discuss__;!!PvXuogZ4sRB2p-tU!AZ2EYnuZsjs_M9d2Z_IurRo5q8a-9JGlVyLUu8D3qvQm5CEC06sCP72xFOFw4IP1aLuJep7mhrllFLE$

_______________________________________________
Maxima-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.