Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Translate the entire conversation x

Difference between range and manually entered values

KP_10839346
4-Participant

Difference between range and manually entered values

I generated a percentage range from 0 to 100% with a step of 5 percent. Since Mathcad did not want to concatenate two matrices generated this way using the augment function, I created a manually entered matrix. Here, a problem arose because the percentage range entered by different methods yields different results in calculations. What mechanism is behind this?

 

KP_10839346_0-1719471053956.png

 

ACCEPTED SOLUTION

Accepted Solutions

3 REPLIES 3
LucMeekes
23-Emerald III
(To:KP_10839346)

A range is NOT a vector, so you cannot apply vector/matrix operations to it.

You define a range R for example with:

R:=1, 2 .. 9

To define a vector V with the same set of values you can use various methods. One is:

V:=matrix(9,1,max)+1

Another is:

i:=0, 1 .. 8

V[i:=i+1

 

Ranges are ONLY used for:

. plotting functions, the range sets the abcissa values.

. Generating vectors and matrices, see above example for the range i.

. Looping/iterations, example:

j:=3, 5 .. 7

V[j=

Should give you the set of values 4, 6 and 8.

 

Success!

Luc

KP_10839346
4-Participant
(To:LucMeekes)

Great thanks for the help, LucMeekes . Generally, I'm still puzzled as to why inserting a manually created table into the calculations or a table created using the method you suggested results in the program calculating incorrect values:

 

KP_10839346_0-1719479211291.png

 

image.pngimage.png

Announcements

Top Tags