Solved
Why is mathcad altering this vector when the IF conditions are not met?
- June 27, 2025
- 2 replies
- 1377 views
I have a loop with two conditions in it, none of which are satisfied.
I created a variable 'a' and defined it as zero, and inside the loop, I made it change 'a' to 1 if the If conditions are satisfied. as shown in the figure below, a is still zero after the loop, meaning the conditions are not satisfied. However, the vector y4 is modified even though it only has equations to modify it inside the same conditions for variable 'a', which is unchanged:

what am I missing here?
I attached the file. Using Mathcad Prime 9.0.00
thanks

