Skip to main content

5 replies

23-Emerald V
Sep 19, 2025 9:57 AM UTC

Here are a couple of options ...

 

2025 09 19 B.png

 

Mathcad Prime 10 worksheet attached.

 

Stuart

Translate
terryhendicott
21-Topaz II
Sep 19, 2025 10:04 AM UTC

Hi,

I took a different tack without the programming.

Cheers

Terry

 

Translate
23-Emerald I
Sep 19, 2025 11:01 AM UTC

In Express 4, should work in student:

Fred_Kohlhepp_1-1758279525636.png

 

Translate
Community Moderator
Sep 26, 2025 4:06 AM UTC

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.

Translate
Werner_E
25-Diamond I
Sep 19, 2025 1:19 PM UTC

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:

Werner_E_1-1758288331239.png

 

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":

Werner_E_0-1758288668470.png

 

 

Prime 11 sheet attached

 

Translate