Skip to main content
25-Diamond I
June 8, 2025
Question

Bug in Prime with vectorization and prime operator?

  • June 8, 2025
  • 2 replies
  • 681 views

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

 

 

2 replies

ttokoro
21-Topaz I
21-Topaz I
June 8, 2025

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

image.png

t.t.
Werner_E25-Diamond IAuthor
25-Diamond I
June 9, 2025

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.

23-Emerald IV
June 9, 2025

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