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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Translate the entire conversation x

Should we call it a bug?

Werner_E
25-Diamond I

Should we call it a bug?

Werner_E_0-1764185611007.png

IMHO the first line should evaluate OK.

Reason for Prime failing is because it automatically assigns the 0  an "appropriate" unit even though Prime is not using SUC (static unit check).  As a result, Prime naturally refuses to add 0 kg and the unitless 1.

A unitless value different from 0 works OK as can be seen in the second line.

Workaround (which should not be necessary) is using "zero" instead of "0".

 

There is no problem if the vector contains values of different dimensions

Werner_E_1-1764186012552.png

or even

Werner_E_0-1764186197301.png

 

 

 

1 REPLY 1
StuartBruff
23-Emerald IV
(To:Werner_E)

Das, was wir ein Computerfehler nennen, würde bei jedem anderen Namen genauso süß duften (Shakespeare's a busy boy, today).

 

Yes, it's a bug.  Looks similar to the NaN bug.

 

https://community.ptc.com/t5/Mathcad/Vectorizing-SIUnitsOf-over-array-containing-NaN/m-p/981787#M214833

 

2025 11 26 B.png

 

Which was supposed to have been fixed, I believe?

 

Stuart

 

 

Announcements

Top Tags