How to find the minimum plus-minus ?

January 20 2012 by Markiyan Hirnyk 3363
false
Maple

1


Let a list of n positive integers be given, e. g. [2,1,4].
Let us consider all sums of  all its members signed by +-, e. g
-2-1-4=-7, -2+1-4=-5, -2-1+4=1, ... .
How to find the sum having the minimum  absolute value with Maple?

 
Loading Comments & Answers

You must be logged into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account