Skip to main content
8-Gravel
July 7, 2023
Solved

Mathcad Not Returning The Correct Sum of An Array

  • July 7, 2023
  • 4 replies
  • 2413 views

Hi All,

 

I created a set data and put them in matrix. Some data product has return the correct value, but there is not return the total sum of the array. Not sure why this has happen.

 

Please help.

 

davidlimtw_0-1688727250437.png

 

 

 

Best answer by ttokoro

image.pngimage.png

4 replies

ttokoro
21-Topaz I
ttokoro21-Topaz IAnswer
21-Topaz I
July 7, 2023

image.pngimage.png

t.t.
23-Emerald I
July 7, 2023

Fred_Kohlhepp_0-1688730056859.png

Since your values in each vector are all the same, why are you carrying vectors?

 

8-Gravel
July 7, 2023

The vector calculate @ each 1m point of the line

24-Ruby III
July 7, 2023

I do not understand why the sum from 0 to 1751 produces different results. It seems to me that the problem is related to units...

MartinHanak_0-1688733261389.png

 

24-Ruby III
July 10, 2023

@MartinHanak wrote:

I do not understand why the sum from 0 to 1751 produces different results. It seems to me that the problem is related to units...

MartinHanak_0-1688733261389.png

 


I apologize to other community members for posting a nonsense.

25-Diamond I
July 7, 2023

If you tell Prime that it should multiply two vectors, you of course get the scalar product.

For what you seem to intend "vectorization"  as already shown by others is intended.

See the difference:

Werner_E_0-1688739531737.png

 

BTW, the unit for your Thermal Expansion Coefficient is wrong! It sure should not be 1/coulomb!

Use Delta°C or even better K (Kelvin)

 

And I guess its always better to close one thread before opening the next one. See: Re: No solution found on solve block, but root fun... - PTC Community

8-Gravel
July 10, 2023

Thanks Werner for spotting the erroe.