hi everybody
anybody know how to change this excel formula into
VB
(4*B57^3+(16*(B57^6)+(D57^6))^(0.5))^(1/3)+(4*B57^3-(16*(B57^6)+(D57^6))^(0.5))^(1/3)
B57 and D57 is input user that must devide by 2 first i have problem because of negatif please help anybody...
This what i did but answer that it calculate not same as answer in excel maybe it wrong somewhere...please help
Private Sub cmdCal_Click()
Dim input1 As Double
Dim input2 As Double
Dim total1 As Double
Dim total2 As Double
Dim Sum As Double
input1 = Val(txtInput1.Text)
input2 = Val(txtInput2.Text)
total1 = input1 / 2
total2 = input2 / 2
Sum = (4 * total1 ^ 3 + (16 * (total1 ^ 6) + (total2 ^ 6)) ^ (0.5)) ^ (1 / 3) + (4 * total1 ^ 3) - (16 * (total1 ^ 6) + (total2 ^ 6)) ^ (0.5) ^ (1 / 3)
lblDisplay = Sum
End Sub