summaryrefslogtreecommitdiff
path: root/src/tgmath
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-06 20:00:56 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-06 20:00:56 -0500
commit1a128358dc00e66394fcdc03b0f113833bdca31b (patch)
tree63f25064d649d058ef501d88523508a2c8862bb9 /src/tgmath
parent7039de6a6731437647bf6f1c3b480766872ac077 (diff)
notes for future reference
Diffstat (limited to 'src/tgmath')
-rw-r--r--src/tgmath/_Imaginary.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tgmath/_Imaginary.txt b/src/tgmath/_Imaginary.txt
new file mode 100644
index 00000000..994337db
--- /dev/null
+++ b/src/tgmath/_Imaginary.txt
@@ -0,0 +1,16 @@
+when called with an _Imaginary (not _Complex) argument, the following apply:
+
+cos(iy) = cosh(y)
+sin(iy) = i sinh(y)
+tan(iy) = i tanh(y)
+cosh(iy) = cos(y)
+sinh(iy) = i sin(y)
+tanh(iy) = i tan(y)
+asin(iy) = i asinh(y)
+atan(iy) = i atanh(y)
+asinh(iy) = i asin(y)
+atanh(iy) = i atan(y)
+
+cos, cosh, fabs, carg, cimag, and creal => return real types
+sin, tan, sinh, tanh, asin, atan, asinh, atanh => return _Imaginary types
+all others => return _Complex types