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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!