I want c++ program for given equations

  • Context: C/C++ 
  • Thread starter Thread starter Anantharaman
  • Start date Start date
  • Tags Tags
    C++ Program
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Anantharaman
Messages
2
Reaction score
0

Attachments

  • ramya5.png
    ramya5.png
    2.8 KB · Views: 154
Physics news on Phys.org
What have you tried so far? Do you have any experience with c++?

I think you might need to provide more information about the variables involved, and where they are coming from.

I was looking around at some math libraries for c++ and seems there are some viable options for the expected value calculation.

The summation could be achieved with a simple for loop, likewise for the factorial on the denominator.