Finding Values of X
Or you can use the Quadratic theory:
Sub uo()
x = -(-28) + Sqr((-28) ^ 2) - (4 * 1 * 16) / (2 * 1)
MsgBox x
x = -(-28) - Sqr((-28) ^ 2) - (4 * 1 * 16) / (2 * 1)
MsgBox x
End Sub
"Jeffrey" wrote:
Good day,
im just a newbie in VBA, i wonder if we can find X using VBA codes to
satisfy the equation below.
X^2 -28X+16 = 0.
Basically i want to find the value of X so that the left side of the
equation is equal to zero.
Thanks in advance.
|