File: constants.sb

package info (click to toggle)
python-pyglm 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,008 kB
  • sloc: cpp: 53,029; python: 3,683; makefile: 7
file content (152 lines) | stat: -rw-r--r-- 6,474 bytes parent folder | download
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
\c\This file was generated using a tool\c\
\h1\constants methods\h1\
The following methods are all part of the \b\constants methods\b\.
Provide a list of constants and precomputed useful values.
\h2\Table of contents\h2\
\ul\
\-\\url #e-function\\b\e\b\ function\url\
\-\\url #epsilon-function\\b\epsilon\b\ function\url\
\-\\url #euler-function\\b\euler\b\ function\url\
\-\\url #four_over_pi-function\\b\four_over_pi\b\ function\url\
\-\\url #golden_ratio-function\\b\golden_ratio\b\ function\url\
\-\\url #half_pi-function\\b\half_pi\b\ function\url\
\-\\url #ln_ln_two-function\\b\ln_ln_two\b\ function\url\
\-\\url #ln_ten-function\\b\ln_ten\b\ function\url\
\-\\url #ln_two-function\\b\ln_two\b\ function\url\
\-\\url #one-function\\b\one\b\ function\url\
\-\\url #one_over_pi-function\\b\one_over_pi\b\ function\url\
\-\\url #one_over_root_two-function\\b\one_over_root_two\b\ function\url\
\-\\url #one_over_two_pi-function\\b\one_over_two_pi\b\ function\url\
\-\\url #pi-function\\b\pi\b\ function\url\
\-\\url #quarter_pi-function\\b\quarter_pi\b\ function\url\
\-\\url #root_five-function\\b\root_five\b\ function\url\
\-\\url #root_half_pi-function\\b\root_half_pi\b\ function\url\
\-\\url #root_ln_four-function\\b\root_ln_four\b\ function\url\
\-\\url #root_pi-function\\b\root_pi\b\ function\url\
\-\\url #root_three-function\\b\root_three\b\ function\url\
\-\\url #root_two-function\\b\root_two\b\ function\url\
\-\\url #root_two_pi-function\\b\root_two_pi\b\ function\url\
\-\\url #third-function\\b\third\b\ function\url\
\-\\url #three_over_two_pi-function\\b\three_over_two_pi\b\ function\url\
\-\\url #two_over_pi-function\\b\two_over_pi\b\ function\url\
\-\\url #two_over_root_pi-function\\b\two_over_root_pi\b\ function\url\
\-\\url #two_pi-function\\b\two_pi\b\ function\url\
\-\\url #two_thirds-function\\b\two_thirds\b\ function\url\
\-\\url #zero-function\\b\zero\b\ function\url\
\ul\
\h3\e() function\h3\
\raw\#### <code>glm.<code>**e**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\e\code\ constant.

\h3\epsilon() function\h3\
\raw\#### <code>glm.<code>**epsilon**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return the \code\epsilon\code\ constant for floating point types.

\h3\euler() function\h3\
\raw\#### <code>glm.<code>**euler**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return Euler's constant.

\h3\four_over_pi() function\h3\
\raw\#### <code>glm.<code>**four_over_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\4 / pi\code\.

\h3\golden_ratio() function\h3\
\raw\#### <code>glm.<code>**golden_ratio**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return the golden ratio constant.

\h3\half_pi() function\h3\
\raw\#### <code>glm.<code>**half_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\pi / 2\code\.

\h3\ln_ln_two() function\h3\
\raw\#### <code>glm.<code>**ln_ln_two**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\ln(ln(2))\code\.

\h3\ln_ten() function\h3\
\raw\#### <code>glm.<code>**ln_ten**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\ln(10)\code\.

\h3\ln_two() function\h3\
\raw\#### <code>glm.<code>**ln_two**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\ln(2)\code\.

\h3\one() function\h3\
\raw\#### <code>glm.<code>**one**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\1\code\.

\h3\one_over_pi() function\h3\
\raw\#### <code>glm.<code>**one_over_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\1 / pi\code\.

\h3\one_over_root_two() function\h3\
\raw\#### <code>glm.<code>**one_over_root_two**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\1 / sqrt(2)\code\.

\h3\one_over_two_pi() function\h3\
\raw\#### <code>glm.<code>**one_over_two_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\1 / (pi * 2)\code\.

\h3\pi() function\h3\
\raw\#### <code>glm.<code>**pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return the \code\pi\code\ constant for floating point types.

\h3\quarter_pi() function\h3\
\raw\#### <code>glm.<code>**quarter_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\pi / 4\code\.

\h3\root_five() function\h3\
\raw\#### <code>glm.<code>**root_five**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\sqrt(5)\code\.

\h3\root_half_pi() function\h3\
\raw\#### <code>glm.<code>**root_half_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\sqrt(pi / 2)\code\.

\h3\root_ln_four() function\h3\
\raw\#### <code>glm.<code>**root_ln_four**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\sqrt(ln(4))\code\.

\h3\root_pi() function\h3\
\raw\#### <code>glm.<code>**root_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return square root of \code\pi\code\.

\h3\root_three() function\h3\
\raw\#### <code>glm.<code>**root_three**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\sqrt(3)\code\.

\h3\root_two() function\h3\
\raw\#### <code>glm.<code>**root_two**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\sqrt(2)\code\.

\h3\root_two_pi() function\h3\
\raw\#### <code>glm.<code>**root_two_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\sqrt(2 * pi)\code\.

\h3\third() function\h3\
\raw\#### <code>glm.<code>**third**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\1 / 3\code\.

\h3\three_over_two_pi() function\h3\
\raw\#### <code>glm.<code>**three_over_two_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\pi / 2 * 3\code\.

\h3\two_over_pi() function\h3\
\raw\#### <code>glm.<code>**two_over_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\2 / pi\code\.

\h3\two_over_root_pi() function\h3\
\raw\#### <code>glm.<code>**two_over_root_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\2 / sqrt(pi)\code\.

\h3\two_pi() function\h3\
\raw\#### <code>glm.<code>**two_pi**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\pi * 2\code\.

\h3\two_thirds() function\h3\
\raw\#### <code>glm.<code>**two_thirds**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\2 / 3\code\.

\h3\zero() function\h3\
\raw\#### <code>glm.<code>**zero**() -\\> *float*</code></code>\raw\
\raw\&emsp;&emsp;\raw\Return \code\0\code\.