aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/math/number/complex.lux
blob: 401a7e980580ae498c66d600a6991a3da609284d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(.module:
  [library
   [lux {"-" private}
    ["$" documentation {"+" documentation:}]
    [data
     ["[0]" text {"+" \n}
      ["%" format {"+" format}]]]
    [macro
     ["[0]" template]]]]
  [\\library
   ["[0]" /]])

(documentation: /.Complex
  "A complex number.")

(documentation: /.complex
  "Complex literals."
  [(complex real imaginary)]
  ["The imaginary part can be omitted if it's +0.0."
   (complex real)])

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            "Complex arithmetic."
            [..Complex
             ..complex
             ($.default /.i)
             ($.default /.+one)
             ($.default /.-one)
             ($.default /.zero)
             ($.default /.not_a_number?)
             ($.default /.=)
             ($.default /.+)
             ($.default /.-)
             ($.default /.equivalence)
             ($.default /.opposite)
             ($.default /.signum)
             ($.default /.conjugate)
             ($.default /.*')
             ($.default /.*)
             ($.default /./)
             ($.default /./')
             ($.default /.%)
             ($.default /.cos)
             ($.default /.cosh)
             ($.default /.sin)
             ($.default /.sinh)
             ($.default /.tan)
             ($.default /.tanh)
             ($.default /.abs)
             ($.default /.exp)
             ($.default /.log)
             ($.default /.pow)
             ($.default /.pow')
             ($.default /.root/2)
             ($.default /.reciprocal)
             ($.default /.acos)
             ($.default /.asin)
             ($.default /.atan)
             ($.default /.argument)
             ($.default /.roots)
             ($.default /.approximately?)]
            []))