Hello, I'm trying to use this method that I found online:
But VS say Keyword does not name a type.Code:Function Bisect(a as Double, b As Double, f As Function(Of Double, Double)) As Double Dim c As Double = (a + b) / 2 Dim d As Double = f(c) While Math.Abs(d) >= 0.0001 If Math.Sign(d) = Math.Sign(f(a)) Then a = c Else b = c End If c = (a + b) / 2 d = f(c) End While Return c End Function
I thing the signature is wrong.
Any advice?




Reply With Quote
