Skip to main content
12-Amethyst
June 15, 2010
Solved

Solve Block Problem

  • June 15, 2010
  • 1 reply
  • 2459 views

Hi, All --

Any ideas as to why I am getting a "variable undefined" error in this solve block? I am sure I'm smissing something simple....thanks in advance.

File is MC14 saved to MC11.

Matt

Best answer by RichardJ

The only error message you ever get from a solve block (in versions 12 or later) is "Variable Undefined". Except by coincidence, it has nothing to do with the actual problem. If you copy and paste the expression outside the solve block, select the entire expression and hit "=" to evaluate it you will get a useful error message. Your function ro returns values with units of m, so you need to multiply x<0> by the correct length unit.

1 reply

RichardJ19-TanzaniteAnswer
19-Tanzanite
June 15, 2010

The only error message you ever get from a solve block (in versions 12 or later) is "Variable Undefined". Except by coincidence, it has nothing to do with the actual problem. If you copy and paste the expression outside the solve block, select the entire expression and hit "=" to evaluate it you will get a useful error message. Your function ro returns values with units of m, so you need to multiply x<0> by the correct length unit.

12-Amethyst
June 15, 2010

Well played, sir. Will played, indeed.