Skip to main content
1-Visitor
March 5, 2016
Solved

Variable is undefined error - given/find function

  • March 5, 2016
  • 4 replies
  • 2581 views

Hi Everyone,

I read the discussion about this error and tried to solve it with method from this link: This variable is undefined error when using Given/Find function, why?
It didn't help me. So I'd like to ask you for help. I really can't find the problem on my own.

I will be grateful for any advice.

Piotr

Best answer by AlanStevens

Because it is linear in the R's you can do it as below:

linear.PNG

Alan

4 replies

23-Emerald V
March 7, 2016

Piotr S wrote:

Hi Everyone,

I read the discussion about this error and tried to solve it with method from this link: This variable is undefined error when using Given/Find function, why?
It didn't help me. So I'd like to ask you for help. I really can't find the problem on my own.

Hi Piotr,

In this case, I think it's because there is no exact solution, so Find will return an error ... which, unhelpfully, is an undefined variable error.

Try Minerr instead, then look at the results to see if they're acceptable / make sense.

Stuart

25-Diamond I
March 7, 2016

Thats strange. I get a solution with find (the same as Stuarts) when using symbolic evaluation.

BTW, the problem with the numeric eval has somehow to do with the units. Getting rid of the units enables the system to solve numerically, too.

19-Tanzanite
March 7, 2016

Because it is linear in the R's you can do it as below:

linear.PNG

Alan

ps-71-VisitorAuthor
1-Visitor
March 7, 2016

Thank you for your response. I think if there was no exact solution for these equations AlanSteven's method wouldn't have worked. Both methods provide proper solution. I need to read more about minerr function, because I haven't used it before.

However, it would be easier if Matchad could return information about the problem, not only undefined variable error.

Appreciate your help

Piotr