Skip to main content
1-Visitor
January 16, 2016
Solved

Undefined variable

  • January 16, 2016
  • 1 reply
  • 2044 views

Hello,

After a few hours of searching the web to finally get my calculation done. I don't have find a reason why I get the error undefined variable.

Can you please help me out with this?

Thank you!

Best answer by LucMeekes

Then you will need to sort out your units. You only provide units for alpha1, so you will run into a units problem.

Be sure to provide consistent units for all of your parameters, or provide none at all.

And finally your problem is reasonably straightforward, you don't need a solve-block:

Success!
Luc

1 reply

23-Emerald IV
January 16, 2016

You get the undefined value's because they're actually not 'defined'.

While you (probably) can put the expressions for dmax, alpha1 etc. in the 'guess values' section, you MUST describe them as assignments, not as constraints.

Change the solid '=' to an assignment ':=' for dmax through T3 and I think it will work. I cannot check, because I'm limited to Prime express.

Of course the two constraints for Phi must be written with a solid '=', that's OK in your sheet.

Success!
Luc

LucMeekes23-Emerald IVAnswer
23-Emerald IV
January 16, 2016

Then you will need to sort out your units. You only provide units for alpha1, so you will run into a units problem.

Be sure to provide consistent units for all of your parameters, or provide none at all.

And finally your problem is reasonably straightforward, you don't need a solve-block:

Success!
Luc

rbijker1-VisitorAuthor
1-Visitor
January 16, 2016

Luc thank you for you're help!