Skip to main content
1-Visitor
February 28, 2015
Solved

How do I get rid of "This variable is undefined"?

  • February 28, 2015
  • 1 reply
  • 1423 views

I'm using a while loop to evaluate a function. Then variables of the function is output for graphing purposes. However, I get an error message of "This variable is undefined"? How do I get rid of this message?

Thank you-

Best answer by AlanStevens

1. Use vi not v in the while test. (Set initial value for i)

2. Don't reassign v to vi at the end of the while loop.

See attached.

Alan

1 reply

19-Tanzanite
February 28, 2015

1. Use vi not v in the while test. (Set initial value for i)

2. Don't reassign v to vi at the end of the while loop.

See attached.

Alan