Custom Tool Bug

Ngoc Tho Nguyen shared this question 1 month ago
Needs Answer

In order to mulitply multiple segments between y=1 and y=0, i have created a segment function tool, which returns a y-coordinate as the output if it's in the segment (the input parameter is a x-coordinate), otherwise it will return 0. The tool is basically simple, but when i use this tool, a bug arises, the functions start to update to be similar with each others like they all reference to one object. Can somebody tell me why is that happened and how can i solve this bug?

© 2021 International GeoGebra Institute