forked from douglascrockford/DEC64
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdec64_math.html
125 lines (110 loc) · 2.59 KB
/
dec64_math.html
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
<!DOCTYPE html>
<html>
<head><title>dec64_math</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
@import url(http://fonts.googleapis.com/css?family=Cousine:700);
@import url(http://fonts.googleapis.com/css?family=Inika:400,700);
body {
background-color: cornsilk;
border-left: 1em solid indianred;
font-family: 'Inika', serif;
margin-left: 1em;
max-width: 50em;
padding: 10%;
}
code, pre, h3 {
font-family: "Courier New", Courier, mono;
font-size: 100%;
font-weight: bold;
}
code var, pre var, h3 var {
font-family: 'Inika', serif;
font-style: italic;
font-weight: normal;
}
pre {
padding-left: 2em;
padding-right: 1em;
padding-bottom: 0.25em;
padding-top: 0.25em;
text-align: left;
}
h3 {
border-top: 1pt solid black;
white-space: pre;
}
a { /* link */
font-size: 100%;
font-variant: normal;
font-weight: normal;
text-decoration: none;
}
a:link {
color: midnightblue;
}
a:visited {
color: purple;
}
a:hover {
border-bottom: 1pt solid blue;
color: blue;
}
a:active {
border-bottom: 1pt dotted red;
color: red;
}
table {
margin-top: -1em;
}
td {
background-color: navajowhite;
border: 2pt solid black;
text-align: center;
}
th {
background-color: inherit;
border: 0;
font-weight: lighter;
padding-left: 3pt;
padding-right: 3pt;
position: relative;
text-align: justify;
top: 1em;
}
/* This terrible hack instead of text_align: force */
th:after {
content: "";
display: inline-block;
height: 0;
width: 100%;
}
.dec64, h1, h2 {
font-family: 'Cousine', sans-serif;
};
</style>
</head>
<body>
<a href="http://www.DEC64.com/"><img src="dec64.png" width="398" height="103" alt="DEC64"></a>
<h1>dec64_math.c</h1>
<p><a href="https://github.com/douglascrockford/DEC64/blob/master/dec64_math.c">dec64_math.c</a>
contains elementary functions for <span class=dec64>DEC64</span> numbers.
<a href="https://github.com/douglascrockford/DEC64/blob/master/dec64_math.h">dec64_math.h</a>
includes C function prototypes for these functions:</p>
<pre>dec64 dec64_acos(dec64 slope)
dec64 dec64_asin(dec64 slope)
dec64 dec64_atan(dec64 slope)
dec64 dec64_atan2(dec64 y, dec64 x)
dec64 dec64_cos(dec64 radians)
dec64 dec64_exp(dec64 exponent)
dec64 dec64_factorial(dec64 x)
dec64 dec64_log(dec64 x)
dec64 dec64_raise(dec64 coefficient, dec64 exponent)
dec64 dec64_random()
dec64 dec64_root(dec64 degree, dec64 radicand)
void dec64_seed(uint64 part_0, uint64 part_1)
dec64 dec64_sin(dec64 radians)
dec64 dec64_sqrt(dec64 radicand)
dec64 dec64_tan(dec64 radians)</pre>
</body>
</html>