cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Bug - matrix limit

DJF
16-Pearl
16-Pearl

Bug - matrix limit

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,

8 REPLIES 8
LucMeekes
23-Emerald III
(To:DJF)

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

DJF
16-Pearl
16-Pearl
(To:LucMeekes)

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

Werner_E
24-Ruby V
(To:DJF)

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".

 

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!
DJF
16-Pearl
16-Pearl
(To:DJF)

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

Werner_E
24-Ruby V
(To:DJF)

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

 

DJF
16-Pearl
16-Pearl
(To:Werner_E)

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

ttokoro
20-Turquoise
(To:DJF)

Prime 8 can do. But symbolic engine needs long time to show the results.

image.png

Top Tags