aboutsummaryrefslogtreecommitdiff
path: root/abcd.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-04-13 23:50:27 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2011-04-13 23:50:27 -0400
commitad8f869703ac20e83084714fd4436a3faf8f0eba (patch)
tree249737b87786c4cd32dcd5378618eeeab4c65262 /abcd.m
parent9d50df730d0ecd7c13d5c1a35bcca91f3a60a3f8 (diff)
downloadmode_match-ad8f869703ac20e83084714fd4436a3faf8f0eba.tar.gz
mode_match-ad8f869703ac20e83084714fd4436a3faf8f0eba.zip
spell check
Ignore-this: 38231e065a8cf2cc033e1c5ef467c111 darcs-hash:20110414035027-067c0-4e9b0379e22460307836afe0f83bfed58107440c
Diffstat (limited to 'abcd.m')
-rw-r--r--abcd.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/abcd.m b/abcd.m
index 0d9ceaa..da68fc9 100644
--- a/abcd.m
+++ b/abcd.m
@@ -6,13 +6,13 @@ function lens_abcd =abcd_lens(focal_distance)
lens_abcd = [1, 0; -1/focal_distance, 1];
endfunction
-function qnew=q_afteer_element(q_old,abcd)
+function qnew=q_after_element(q_old,abcd)
qnew=(q_old*abcd(1,1)+abcd(1,2))/(q_old*abcd(2,1)+abcd(2,2));
endfunction
function optics = arrange_optics_along_x(optics_unsorted)
-% arrange optics in proper order so it x position increases with number
+% arrange optics in proper order so its x position increases with consequent index
N=length(optics_unsorted);
% assign x positions