Solved
How to define a subroutine or an alternative to it?
- June 27, 2025
- 2 replies
- 523 views
I have a large portion of calculations that I will be calling a few times and I would like to avoid repeating it
it's not a simple function f(x) = x^2, that I could just create a custom one. it has loops, etc
I saw a suggestion of putting everything in a solve block, but the solve block has these options (guess, constraints, solver) that I will not be using in my routine:

Also, after I defined the subroutine, how do i call the results?
i am using Mathcad 9.0.0
i attached the file that contains only the part I would like to be the subroutine itself
it has the Inputs, Calculations, Outputs. Should be easy to understand the general idea.


