|
|
|
|
|
by beryilma
811 days ago
|
|
A sure sign of an inexperienced programmer in numerical computing is when they check for equality to zero of a floating-point number as if (x == 0) ... instead of something like if (abs(x) < eps) ... where eps is a suitably defined small number. |
|
The key here is that beta is likely to be an exact value that is entered as a constant, and detecting it allows for a worthwhile optimization.