Mathematical notion

56 Views Asked by At

I have the following equation:

original code

Then I use the code in R - a mathematical program:

codeInR

This gives me these results:

MyResults

But the right results are:

TheRightResults

Can anybody help point me in the right direction - I have tried moveing around with the paranthesis to no avail. Thanks in advance