relativeError method
Relative error between this and correct
.
Implementation
double relativeError(Quaternion correct) {
final Quaternion diff = correct - this;
final double norm_diff = diff.length;
final double correct_norm = correct.length;
return norm_diff / correct_norm;
}