I have an algorithm written in Java that I would like to make more efficient. A part that I think could be made more efficient is finding the smallest of 3 numbers. Currentl
double smallest = a; if (smallest > b) smallest = b; if (smallest > c) smallest = c;
Not necessarily faster than your code.