Acutally made error in putting the "-" inside the
Math.Pow(-(x1 - Math.PI), 2)
, and the approach is not the best. I would also not use the
Pow
for square because of perfomance, and would use the
Exp
function:
v
ar VALUE = - Math.Cos(x1) * Math.Cos(x2) * Math.Exp(-(x1 -nu) *(x1 - Math.PI) -(x2 -nu) * (x2 -Math.PI));