Maxima CAS: How to force log() into a product?
Just found logexpand
variable, which is opposite to logcontract
:
logexpand:all;
f:log(product(exp(X[i]-mu),i,1,n));
print(f);
print(radcan(f));
produces:
n
====
\
> (X - mu)
/ i
====
i = 1
n
====
\
> (X - mu)
/ i
====
i = 1