Skip to main content
1-Visitor
June 17, 2015
Solved

Minimize between vector and a single value

  • June 17, 2015
  • 1 reply
  • 1740 views

Is it possible to create a minimize function comparing each entry of a vector to a single number and then outputting a vector with each entry being the smaller of the two valves? The attempts in the attached worksheets (Prime 3.1 and Mathcad 15) only find the minimum between the entire vector and single value instead of comparing them line by line.

 

Best answer by RichardJ

1 reply

RichardJ19-TanzaniteAnswer
19-Tanzanite
June 17, 2015
dsochor1-VisitorAuthor
1-Visitor
June 17, 2015

Thank you Richard! Can this es function be made into a function of c: es(c)?

19-Tanzanite
June 17, 2015

Your function definition is fine. The solve block fails because there is no value of c that makes the sum equal to zero.