It is actual declare in the scope, I have checked the brackets.
Still anyways
Try this code attached below. Because if I am right things are going in correct manner.
Output URL:
Sorry for my bad drawing, please consider asymptote touch at peak points of graph.
I have edited in only X-axis direction. move the chip toward X-axis and check the respective values.
Text (1).txt