Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Compare please attach.
Solved! Go to Solution.
Here is the bug shown with a very simplified example. It has to do with the nested loops (which should have no effect whatsoever in this example). Omitting either loop will make it work.
In my opinion it should work so I tend to call it a bug and you should report it to PTC.
I tried two easy workarounds which both work as expected:
BTW, instead of the for loop (the first with variable j) you may consider using the new row select operator in combination with transposition.
Addendum: Its the for-loop which sets some matrix elements to infinity which throws the error. If you delete it (the routine won't give the expected results then, I know), M is accepted as matrix again. I am pretty sure that it is a bug!
Here is the bug shown with a very simplified example. It has to do with the nested loops (which should have no effect whatsoever in this example). Omitting either loop will make it work.
Thanks, Werner - it is a bug!
Valery Ochkov wrote:
Thanks, Werner - it is a bug!
Yes, I am quite sure about that now. I assume you will report it to PTC.
One more.
I can write in Mathcad M[(i ,j) but cannot in Prime.
I see, obviously lists are allowed in Prime only with prepended function name. But I am not sure if we should call this a bug.
What would the reason for using M[(i,j) be? You could write M[(i),(j) - this is allowed.
Werner Exinger wrote:
I see, obviously lists are allowed in Prime only with prepended function name. But I am not sure if we should call this a bug.
What would the reason for using M[(i,j) be? You could write M[(i),(j) - this is allowed.
It is for better reading a sheet - see the picture.
But the Prime converter deletes those parentheses but does see the attch.