Skip to main content
Werner_E
Werner_EAnswer
25-Diamond I
Oct 22, 2025 4:12 AM UTC

Reason is that you are using a range variable for something its not made for.

But you are not the first to confuse ranges with vectors - unfortunately, it is a matter that constantly causes misunderstandings and confusion.

Ranges are kind of implicit loops, not a data structure which holds a couple of values (like a vector).

Ranges should only be used for

1) plots as the variable placed at the abscissa axis

2) indexing vectors and matrices

3) loops in a program

 

For your purpose you should define variable "k" as a vector, not a range.

Simply replace the definition   k:=0,0.2..1   by    k:=vec(0,0.2,1)   and all will work as you expected.

"vec" is a new function in Prime 11 and can be used to either define a vector (as just shown) or to convert a range into a vector. See the help for more information.

 

Werner_E_0-1761107166388.png

 

3 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Oct 22, 2025 4:12 AM UTC

Reason is that you are using a range variable for something its not made for.

But you are not the first to confuse ranges with vectors - unfortunately, it is a matter that constantly causes misunderstandings and confusion.

Ranges are kind of implicit loops, not a data structure which holds a couple of values (like a vector).

Ranges should only be used for

1) plots as the variable placed at the abscissa axis

2) indexing vectors and matrices

3) loops in a program

 

For your purpose you should define variable "k" as a vector, not a range.

Simply replace the definition   k:=0,0.2..1   by    k:=vec(0,0.2,1)   and all will work as you expected.

"vec" is a new function in Prime 11 and can be used to either define a vector (as just shown) or to convert a range into a vector. See the help for more information.

 

Werner_E_0-1761107166388.png

 

Translate
18-Opal
Oct 22, 2025 4:14 AM UTC

ppal_0-1761106483355.png

 

Translate
ttokoro
21-Topaz I
Oct 22, 2025 7:32 AM UTC

image.png

Translate
t.t.