View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default 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.