Skip to main content
1-Visitor
March 6, 2010
Question

Function Evaluation

  • March 6, 2010
  • 1 reply
  • 3263 views
Good day everyone. I'm new to Mathcad, and I need your help. I have this problem involving a function evaluation. Let's say F is a function of multiple variables, and each variable has a discrete number of values. For example: F(a,b,c)=(a+b)/c and a={1,2,3) b={3,5,6) and c={8,9,7} In my problem, F is a function of 7 variables. Using mathcad, how will I be able to solve all the possible F values? this could be easily done manually for a small number of combinations, but how about for large numbers of possible combinations. thank you very much!

1 reply

19-Tanzanite
March 6, 2010
You need to use a small program with nested loops. Richard
23-Emerald V
March 7, 2010

"Jaime Angelo Victor" wrote:

Good day everyone. I'm new to Mathcad, and I need your help. I have this problem involving a function evaluation. Let's say F is a function of multiple variables, and each variable has a discrete number of values. For example: F(a,b,c)=(a+b)/c and a={1,2,3) b={3,5,6) and c={8,9,7} In my problem, F is a function of 7 variables. Using mathcad, how will I be able to solve all the possible F values? this could be easily done manually for a small number of combinations, but how about for large numbers of possible combinations. thank you very much!

1-Visitor
March 7, 2010

"Stuart Bruff" wrote:

As an alternative to using nested for loops, you could use an iterator to create each combination of values. Stuart (Works in M14, but for some reason that I am too tired to fathom out, M11 doesn't like the final for loop assignment).