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
How can I determine the maximum absolute value of a vector, but have the result appear with its corresponding sign?.
Thanks to the community for your attention.
Here are a couple of options ...
Mathcad Prime 10 worksheet attached.
Stuart
Hi,
I took a different tack without the programming.
Cheers
Terry
Hello @DC_11916766,
It looks like you have some responses from our community champions. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.
Thanks,
Vivek N.
Community Moderation Team.
Here are my 2 cents worth...
Like Terry I wondered what you would like to chose in case positive and negative values with the same absolute magnitude exist.
Here are some suggestions:
P.S.: The method also works well in the free Prime Express. But because Express does not offer programming, we would have to change the "magnitudes" function in Express and do without the local variable "absv":
Prime 11 sheet attached