Hello, I'm trying to use this method that I found online:
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
But VS say Keyword does not name a type.
I thing the signature is wrong.
Any advice?