Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Reference https://community.ptc.com/t5/Mathcad/Sum-in-Mathcad-Prime/m-p/1035397/highlight/true#M218879
Following on from the discussion re minima and maxima of various Mathcad data types, I gave up on trying to fault-find my original (messy) complex sort worksheet, and present the following simplified Mathcad Prime 11 version for your edification. It's based on merge sort.
zv is the complex-valued vector to sort, and I've rerun the results in MATLAB.
.
Stuart
What am I missing?
A quick hack to fix the problem with 1-column matrices:
Yes, effectively the same solution. Great minds ... 😈
Then I realised that, in terms of testing, I'm busy doing all the barking when I've got a perfectly good laptop that can do that for me:
Stuart
Hmm. Yes, avoidable if we had the empty array, but never mind. I snagged a couple of functions from my Express library.
Hopefully, the problem is now fixed, the code appears more elegant, and is ripe for conversion to Express.
Hopefully, I will test my worksheets more rigorously in future. ( 🤣 )
Stuart
