average : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

average
You might think about the simplest coding task in the world would be to compute the average of two positive integers, rounded The catch is as you can see from the program, some very simple code to compute the avarage sometimes fails.

Alternates

Mathematicians have come up with a number of ways of computing the average of a list of numbers besides adding them up and dividing by the number of elements. Here is code to compute some of the variants:

This page is posted
on the web at:

http://mindprod.com/jgloss/average.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\average.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[3.144.6.144]
You are visitor number