cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Another "variable is undefined" question

ptc-5341320
1-Newbie

Another "variable is undefined" question

Hi I am very new to MatchCAD (and to PTC so I am sorry if I am in the wrong part). I keep getting variable is undefined at the bottom of my find block. I will attach my file so that someone can look at it. It isn't very complex, I just can't figure out why it won't work.

1 ACCEPTED SOLUTION

Accepted Solutions

The real problem here lies in your fifth equation, where the factor multiplying B is x5Ac instead of x6Ac.

Alan

View solution in original post

6 REPLIES 6

I keep getting variable is undefined at the bottom of my find block

Thats the only error message you will get from a solve block, no matter what the real reason may be.

Richt click on the error message and use trace Error to go to the first. Mathcad will tell you that it found no solution.

You have six equations in your solve block but just five variables.This is likely to have no solution.

If you look closely at the top three equations you notice that the only deal with three variables, so you could solve for them. They are so simple you won't need a solve block to do so, but you can.

The last three equations also deal only with three variables. Variable F is in both blocks of three and chances are the results for F are different in both solve blocks which is the reason your big block throws the error.

I guess your last equations are wrong - you are demanding the impossible. Fill in your nuimbers and look what kind of equations you get. The only solution possible is when all variables are zero.

Thanks for looking at that. My assignment requires that I only use one given/find solve block though. I traced the error and it comes up as F has no solution, but of course it does. I will attach the matrix methods version of the same problem. Our assignment was to use matrix methods and a given/find solve block to solve for these variables.

Here it works as you only have five equations for your five variables, not six.

The real problem here lies in your fifth equation, where the factor multiplying B is x5Ac instead of x6Ac.

Alan

The real problem here lies in your fifth equation, where the factor multiplying B is x5Ac instead of x6Ac.

Ah, yes - well spotted. And so now the last three equations are linear dependend, the sum of last two giving the fourth, so you may omit any one of them.

Thanks a lot! I finally did figure this out last night

Top Tags