Skip to content

Commit

Permalink
eulang: relax orthogonality threshold for printed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
stestoll committed Sep 16, 2024
1 parent 1b0e959 commit d656aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyspin/eulang.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
orthogonalityError = norm(R'*R-eye(3));
if orthogonalityError>1e-2
error('eulang: Rotation matrix is not orthogonal, deviation is %f.',orthogonalityError);
elseif orthogonalityError>1e-8
elseif orthogonalityError>1e-6
fprintf('eulang: Rotation matrix is not orthogonal, deviation is %g.\n',orthogonalityError);
fprintf('eulang: Orthogonalizing using singular-value decomposition (SVD).\n');
[U,~,V] = svd(R);
Expand Down

0 comments on commit d656aa3

Please sign in to comment.