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
There's no error in the worksheet, but the answer is incorrect. How do i define in Mathcad so that it would read each scalar in the array instead of a whole.
(Mathcad 15)
Solved! Go to Solution.
One way is as follows:
Turning the calculation into a function and calling that function vectorized might be an option.
Furthermore you have to use the logical "or" operator to connect your two conditions.
You don't have to name the formal function argument "class_id" as I did, you may name it simply "class" as well.
Furthermore you may consider making "Dp" a second function argument.
MC15 worksheet attached