Question: How can I write a c++ code to calculate the following equation: result=[P[n]P[n-1]P[n-2]P[n-3]P[n-4].....P[0]]*[(1-P[n])P[n-1]P[n-2]P[n-3]P[n-4].....P[0]]*[P[n](1-P[n-1])P[n-2]P[n-3]P[n-4].....P[0]]*......................[P[n]P[n-1]P[n-2]P[n-3]P[n-4].....(1-P[0])] Please help, I have no ideas how to do this
How can I write a c++ code to calculate the following equation:
result=[P[n]P[n-1]P[n-2]P[n-3]P[n-4].....P[0]]*[(1-P[n])P[n-1]P[n-2]P[n-3]P[n-4].....P[0]]*[P[n](1-P[n-1])P[n-2]P[n-3]P[n-4].....P[0]]*......................[P[n]P[n-1]P[n-2]P[n-3]P[n-4].....(1-P[0])]
Please help, I have no ideas how to do this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
