C/C++ I want c++ program for given equations

  • Thread starter Thread starter Anantharaman
  • Start date Start date
  • Tags Tags
    C++ Program
Click For Summary
The discussion centers around the need for more information regarding variables in a C++ context, particularly for calculating expected values. Participants highlight the importance of understanding the source of these variables. Additionally, they explore various C++ math libraries that could assist with expected value calculations. The conversation also suggests that basic operations like summation and factorial can be efficiently implemented using simple for loops.
Anantharaman
Messages
2
Reaction score
0

Attachments

  • ramya5.png
    ramya5.png
    2.8 KB · Views: 121
Technology 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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

Replies
86
Views
1K
Replies
69
Views
9K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
14
Views
3K
Replies
81
Views
7K
  • · Replies 22 ·
Replies
22
Views
3K