I am receiving an unclear error when trying to plot partial sums of elements of a list in MuPAD. Any suggestions would be appreciated.
d := [1, 2, 3]:
plot::Sum(d[i], i = 1..nops(d)):
Error: Duplicate identifiers '{d[i]}' were found in range specifications. [plot::Sum::new]
As per the documentation,
plot::Sumexpects an expression (or a function) for the first argument, but you're passing it a list (DOM_LIST). You can easily create a function/procedure using the->operator:This produces a plot like this: