Comp Sci C++; arrays and standard devation/variance?

  • Thread starter Thread starter mathman44
  • Start date Start date
  • Tags Tags
    Arrays Standard
AI Thread Summary
The code successfully prints the mean, number of data points, minimum, and maximum values of the input array. The user is seeking assistance on how to additionally calculate and display the standard deviation and variance. There is confirmation that the existing code functions correctly for the current outputs. The discussion highlights a common need for understanding statistical calculations in C++. The thread emphasizes the importance of expanding functionality to include standard deviation and variance in array processing.
mathman44
Messages
204
Reaction score
0
---

Found solution. Nvm.
 
Last edited:
Physics news on Phys.org
what does it print?
What did you expect it to print?
 
The code works fine as is; it prints the mean, # of data, min and max of the array input. I just don't know how to make it also "cout" the std devation and variance of the input.
 

Similar threads

Replies
3
Views
1K
Replies
21
Views
3K
Replies
3
Views
2K
Replies
4
Views
3K
Replies
5
Views
2K
Replies
4
Views
1K
Replies
17
Views
3K
Replies
5
Views
2K
Replies
42
Views
4K
Back
Top