What is the proper way (in Prime 3.1) to create an if statement that compares the values of a vector to a single value? Please see the attached photo for a better description.
Thank you Mark, I'm looking for the first result. I tried multiple arrangements of the "vectorize" operator and each resulted in an error. What is the correct way to use the vectorize operator in this situation?
Hmm.. it appears the vectorization operator does not seem to work with "if" statements. We could write a program. However, if you true and false results are simply 1 and 0, you don't even need the "if" statement:
Mathcad already stores "true" as 1 and "false" as 0.