Skip to main content
1-Visitor
July 20, 2019
Solved

Variable Undefined Error

  • July 20, 2019
  • 2 replies
  • 3201 views

I'm getting the variable undefined error for variable "r".  Any suggestion?Variable UndefinedVariable Undefined

Best answer by Werner_E

Delete the equal sign (evaluation) after the function definition!

B1.png

2 replies

23-Emerald IV
July 22, 2019

Three suggestions:

1. Attach your worksheet. It is very hard, to sometimes impossible, to debug pictures. State which version of Prime you are using.

2. Check the labels of the various variables named 'r', to see if they match (= they're actually the same variable)..

3. What is the function supposed to result in when r > Ks and t >to? You need to account for ALL possible outcomes.

 

Success!
Luc

vip1-VisitorAuthor
1-Visitor
July 22, 2019
Hi Sapphire I, Attached is the worksheet. It is in Prime 5.0. I could not find how to upload the file in the Community web site. Hope this work.



Thanks,



Vincent


23-Emerald IV
July 22, 2019

No worksheet attached.

To attach a worksheet, use the 'Browse...' button below and to the left of the message edit window.

 

Success!
Luc

Werner_E25-Diamond IAnswer
25-Diamond I
July 23, 2019

Delete the equal sign (evaluation) after the function definition!

B1.png

vip1-VisitorAuthor
1-Visitor
July 23, 2019

It works.

 

thanks,