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: 119
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.
 
Anthropic announced that an inflection point has been reached where the LLM tools are good enough to help or hinder cybersecurity folks. In the most recent case in September 2025, state hackers used Claude in Agentic mode to break into 30+ high-profile companies, of which 17 or so were actually breached before Anthropic shut it down. They mentioned that Clause hallucinated and told the hackers it was more successful than it was...

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