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: 117
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 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top