summaryrefslogtreecommitdiff
path: root/abcd.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-04-14 09:35:19 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2011-04-14 09:35:19 -0400
commit9ab48ca4f9a875bc0b6e687190a3103f309c7353 (patch)
tree0b323d23c6e779b35a63a2e89fe7c82572349d06 /abcd.m
parentbb8e4862158cefe2d64b5231bd86f341e1f16a81 (diff)
downloadmode_match-9ab48ca4f9a875bc0b6e687190a3103f309c7353.tar.gz
mode_match-9ab48ca4f9a875bc0b6e687190a3103f309c7353.zip
added q -> waste and radius function
Ignore-this: 30856c0dad521880036a8822bed1c6c8 darcs-hash:20110414133519-067c0-b7aaa6d5a8842913d351fea89541117d83c47596
Diffstat (limited to 'abcd.m')
-rw-r--r--abcd.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/abcd.m b/abcd.m
index da68fc9..bc7466a 100644
--- a/abcd.m
+++ b/abcd.m
@@ -39,6 +39,12 @@ function radius =q2radius(q, lambda)
radius=(1./real(1./q));
endfunction
+function [waste,radius] =q2wr(q, lambda)
+ waste=sqrt (-lambda./pi./imag(1./q));
+ radius=(1./real(1./q));
+endfunction
+
+
function q=waste_r2q(waste,R,lambda)
q=1./(1./R-1i.*lambda./pi./(waste.^2));
endfunction