Skip to main content
1-Visitor
April 28, 2021
Solved

generate matrix from numerical integration

  • April 28, 2021
  • 4 replies
  • 2655 views

Hello,

 

Hello everyone,

 

I have a very simple question. I solved an integration and I was unable to generate a table with the data of that integration. I send my file here. Can anyone help me?

 

Thank you

Best answer by LucMeekes

You have defined z as a range, that is something completely different from a vector. And it is important that you understand that.

A Vector is a (single) column Matrix. Both a Vector and a Matrix are forms of an Array. Array's are mathematical constructs that you can Index, that is, you can point at an individual element of the Array.

A Range is just a list of numbers. In Mathcad you can/should use Ranges only to:

- Plot a function (over a range), the range can contain any linear sequence (equally spaced) of real numbers.

- Control a FOR loop in a program, or iterate a (set of) equations on worksheet level, again, the range can contain any real number sequence.

- Index into an Array, in this case the range must consist of integers only.

 

If you want that matrix, here's what you can do:

LucMeekes_0-1619629891426.png

In the above program, k is a range used for the second AND the third purpose.

 

Success!
Luc

4 replies

23-Emerald IV
April 28, 2021

You should be able to get a table by entering:

C(z)=

 

and wait for the result..

LucMeekes_0-1619629961956.png

Success!
Luc

M_U1-VisitorAuthor
1-Visitor
April 28, 2021

Thank you Luc,

 

I'm trying to create a matrix with z and C (z) using the augment function and it doesn't work. C (z) and z are not vectors?

LucMeekes23-Emerald IVAnswer
23-Emerald IV
April 28, 2021

You have defined z as a range, that is something completely different from a vector. And it is important that you understand that.

A Vector is a (single) column Matrix. Both a Vector and a Matrix are forms of an Array. Array's are mathematical constructs that you can Index, that is, you can point at an individual element of the Array.

A Range is just a list of numbers. In Mathcad you can/should use Ranges only to:

- Plot a function (over a range), the range can contain any linear sequence (equally spaced) of real numbers.

- Control a FOR loop in a program, or iterate a (set of) equations on worksheet level, again, the range can contain any real number sequence.

- Index into an Array, in this case the range must consist of integers only.

 

If you want that matrix, here's what you can do:

LucMeekes_0-1619629891426.png

In the above program, k is a range used for the second AND the third purpose.

 

Success!
Luc