aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/math.lux
blob: 10bd8a1f3cd1e017411184c3aaa4a117498aed3e (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
(.using
 [library
  [lux {"-" char}
   ["$" documentation {"+" documentation:}]
   [data
    [text
     ["%" format {"+" format}]]
    [collection
     ["[0]" list]]]]]
 ["[0]" / "_"
  ["[1][0]" infix]
  ["[1][0]" modulus]
  ["[1][0]" modular]
  ["[1][0]" number]
  ["[1][0]" logic]
  ["[1][0]" random]]
 [\\library
  ["[0]" /]])

(documentation: /.e
  "The base of the natural logarithm.")

(documentation: /.pi
  "The ratio of a circle's circumference to its diameter.")

(documentation: /.tau
  "The ratio of a circle's circumference to its radius.")

(documentation: /.pow
  ""
  [(pow param subject)])

(documentation: /.atan_2
  ""
  [(atan_2 x y)])

(documentation: /.log_by
  ""
  [(log_by base it)])

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            "Common mathematical constants and functions."
            [..e
             ..pi
             ..tau
             ..pow
             ..atan_2
             ..log_by
             ($.default /.cos)
             ($.default /.sin)
             ($.default /.tan)
             ($.default /.acos)
             ($.default /.asin)
             ($.default /.atan)
             ($.default /.exp)
             ($.default /.log)
             ($.default /.ceil)
             ($.default /.floor)
             ($.default /.root_2)
             ($.default /.root_3)
             ($.default /.round)
             ($.default /.factorial)
             ($.default /.hypotenuse)
             ($.default /.sinh)
             ($.default /.csch)
             ($.default /.cosh)
             ($.default /.sech)
             ($.default /.tanh)
             ($.default /.coth)
             ($.default /.asinh)
             ($.default /.acosh)
             ($.default /.atanh)
             ($.default /.acoth)
             ($.default /.asech)
             ($.default /.acsch)]
            [/infix.documentation
             /modulus.documentation
             /modular.documentation
             /number.documentation
             /logic.documentation
             /random.documentation]))