summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/settings.tex9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/settings.tex b/common/settings.tex
index ba83d93..0e8e28c 100644
--- a/common/settings.tex
+++ b/common/settings.tex
@@ -107,6 +107,15 @@
};
};
}
+\tikzmath{
+ function asinc(\x, \y) {
+ if abs(\x) < .001 then { % (|x| < .001) ~ (x = 0)
+ return 1;
+ } else {
+ return sin(\y * deg(\x) / 2)/(\y * sin(deg(\x)/2));
+ };
+ };
+}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Symbols