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

  • Thread starter Thread starter Anantharaman
  • Start date Start date
  • Tags Tags
    C++ Program
AI Thread 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: 114
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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top