[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Root of the problem



PureBytes Links

Trading Reference Links

Ian,

>I'm wanting to solve equations that go like this:
>
>X = Y * Z^a * V^b * W^c

And you want to solve for either Z, V, or W, provided everything else is
known.

Z = [(X - Y) / (V^b * W^c)] ^ (1/a)

V = [(X - Y) / (Z^a * W^c)] ^ (1/b)

W = [(X - Y) / (Z^a * V^b)] ^ (1/c)

>I'm a real klutz at this sort of stuff so if anyone can help I'd really 
>appreciate a few lines of TS code rather than just the formula.

The formulas are nearly identical to the code, except an expression like
Z^a would be written as power(Z,a).

-Alex