Skip to main content
15-Moonstone
October 6, 2021
Solved

Summation of the function

  • October 6, 2021
  • 2 replies
  • 5451 views

Hello!

 

I am trying to sum up all the values of the given function f(x) by using the summation operator. 

Variable "x" has assigned values in vector form. How do I proceed here?

 

Please, take a look at the attached file (Mathcad Prime 6).

 

Best regards,

Sergey 

Best answer by o.svahn

You need  

osvahn_0-1633520213771.png

for it to be a vector !

kudos

Owe

2 replies

o.svahn12-AmethystAnswer
12-Amethyst
October 6, 2021

You need  

osvahn_0-1633520213771.png

for it to be a vector !

kudos

Owe

Sergey15-MoonstoneAuthor
15-Moonstone
October 6, 2021

Of course it is - I should have seen it.

Thanks a lot.

23-Emerald IV
October 6, 2021

OK, you transpose the array x, which gives

LucMeekes_0-1633530300169.png

Then your summation gives:

LucMeekes_1-1633530327207.png

That is because j is not part of the argument of the summation. If you change the limits for j:

LucMeekes_2-1633530387800.png

or:

LucMeekes_3-1633530434036.png

Now if you sum these array values, you get 83, which is the sum of the values of the function results for each of the array elements in x.

To get that straight away, you can index the function inside the summation:

LucMeekes_4-1633530574198.png

Which is (most probably) what you were after.

Prime is pretty forgiving. Without requiring a transpose, this also works:

LucMeekes_0-1633529446024.png

Success!
Luc

Sergey15-MoonstoneAuthor
15-Moonstone
October 6, 2021

Thanks Luc.
But for the correctness sake it may be better to stick with the transpose operator 🙂

 

Sergey