I'm trying to decipher this C code and translate it into PHP (long
story). Can anyone help?
(xx is a float being passed into the function)
--snip--
temp = (x = xx - 1.0) + 5.5;
temp = (x + 0.5) * log(temp) - temp;
--snip--
My assumption was this:
x = xx - 1.0
temp = x + 5.5
then later, temp = (x + 0.5) * log(temp) - temp
For some reason, I don't think my assumption is correct as the wrong
values are coming out of the function. The weird use of parentheses/
assignment operators is throwing me off.
Is there a different (a.k.a. more verbose) way to write that snippet?
I want to make sure I get this right.
Thanks,
Jon