When I run the following Visual Basic code :
Dim b As Double b = (2 ^ 16 - 1) * Math.Sqrt(Math.Sqrt((a / (2 ^ 8 - 1))))
(Assuming a
a
^ is XOR operator in java. Use Math.pow(2,8) which is 2 ^ 8 in Visual Basic.
^
Math.pow(2,8)
2 ^ 8