Hi,

I am having a problem detecting the change in sign. I need to determine the root of the equation y=mx+b.

The key to making this work is to detect the change in the sign value of y as x is increased over a given interval. I can cycle through the values of X ok, but the trick is detecting the sign change.

I also do not know if I am approaching the root from the positive side or the negative side.

Does anyone know a nifty bit of code to help me do this?

Thanks.