Maxima CAS : summation with symbolic upper limit n not simplifying when the upper limit is specified later with ev() -
The following two pieces of the Maxima code should be the same:
sum (x [i] , I, 1, 2); Ev (%, x [1] = 5, x [2] = 3);
and:
sum (x [i], i, 1, n); Ev (%, n = 2, x [1] = 5, x [2] = 3); In the first case, Maxima has to evaluate the expression on 8. In the second case, it is not simple and leaves me with the symbolic sum of X [i] I = 1 to 2. Why is it that unable to recognize second expression from Maxima as it is like before?
How can I get the maximum, in which a conference with fully indexed variables is evaluated whilst evaluating an indexed value, where the upper limit is specified later goes?
is in the amount (see a leading% in lisp expression)
(% I76) expr: amount (x [i], i, 1, n); N ==== \ (% o76) & gt; X / I ==== I = 1 (% i77): Lisp $ XPR ((% SUM SIMP) (($ X SIMP ARRAY) $ I) $ I 1 $ N)
You need to evaluate nouns
(% i77) ev (xp, n = 2, x [1] = 5, x [2] = 3, nouns); (% O77) x + x 2 1
and request an additional post-rating
(% i78) ev (xp, n = 2 , X [1] = 5, x [2] = 3, nouns, evil); (% O78) 8
Comments
Post a Comment