Skip to main content
16-Pearl
March 28, 2018
Question

Bug - matrix limit

  • March 28, 2018
  • 3 replies
  • 3274 views

I seem to have found a bug in Prime 4.0.  When specifying an array of 4767 elements it stops working.  But only if the program is defined as [a  b]:=, it works fine if it's a:=.  This picture explains it better than I can.  So, I have a work around, but my questions are:

a.) It's a bug, right?

b.) Any reason why it would do that?

 

2018-03-28_8-49-35.jpg

 

Thanks,

3 replies

23-Emerald IV
March 28, 2018

For the situation where it works. What are the values of a and b following the assignment.

(Of course) this works with no problem in Mathcad 11. But I get this:

 LM_20170328_Bug.png

That is: a and b are each the same set of two vectors.

Success!
Luc

DJF16-PearlAuthor
16-Pearl
March 28, 2018

I get this as results when it works.  (just what I'd expect to get)

2018-03-28_9-49-45.jpg

 

The workaround gives this:

2018-03-28_9-51-16.jpg

25-Diamond I
March 28, 2018

I can only confirm that its a bug in Prime.

There is no problem of that kind in Mathcad 15

2018-03-28_16-56-54.png

When I go up to 10^7 I get a "System.OutOfMemoryException".

 

25-Diamond I
March 28, 2018

The error even occurs if we don't create variables in the program and don't calculate anything!

Bild.png

The error message tells us that either an overflow occured or an infinite recursion ... sure!
DJF16-PearlAuthor
16-Pearl
October 27, 2022

I'd forgotten about this bug until it bit me again today.  But what is strange is that this case works fine in Prime 4, 5 and 6.  But in 7 I get the error.  (don't have v8 to test)

.2022-10-27_08-13-17.png

25-Diamond I
October 27, 2022

Curious, but in this case it can be said that turning a range into a vector is an undocumented feature and so subject to be changed without notice.

Does the error also pops up if you create the vector in "classic" legal manner?

I can only test with P6 and, as you wrote, no error here with both methods.

Werner_E_0-1666878538435.png

 

DJF16-PearlAuthor
16-Pearl
October 27, 2022

Thanks Werner.  Yes, the classic method works in P7.  (I'm so used to the shortcut I forget about that)

2022-10-27_09-57-23.png