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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Translate the entire conversation x

Bug in Prime with vectorization and prime operator?

Werner_E
25-Diamond I

Bug in Prime with vectorization and prime operator?

Found what looks to me like a bug.

Werner_E_2-1749408170564.png

The error message is not very helpful and rather an indication that it is actually an unintentional bug.

 

In Mathcad the convenient prime operator is not available and so we would have to use

Werner_E_1-1749407959864.png

Can't check if this way would work in Prime as I am limited to Express and that kind of 'programming' is a premium feature not available in Express.

In Prime we get the very same error when using a scalar argument and vectorize

Werner_E_3-1749408422053.png

 

Any comments on this?

 

Prime 4 worksheet attached

 

 

3 REPLIES 3
ttokoro
21-Topaz I
(To:Werner_E)

Prime 11 shows the same error. Symboric and then = can do it.

image.png

Werner_E
25-Diamond I
(To:ttokoro)

Yes, I tested with Prime 4, 6, 10 and 11 and all suffer from the same bug.

I suspect that it has something to do with the new way introduced with Prime to access vector elements by looking at the vector if it were a function. Not sure about that, but whatever the cause may be, I consider it a severe bug.

Interesting that it seems to be a numeric only problem.

It works with symbolic eval because the numeric evaluation only evaluates the expression directly to the left of it, which the symbolic engine already had calculated.

LucMeekes
23-Emerald IV
(To:Werner_E)

Similarly:

LucMeekes_0-1749479037667.png

The vectorised expression gives the error "This function requires at least 2 argument but is applied to 1."

 

Success!
Luc

Announcements


Top Tags