-
Notifications
You must be signed in to change notification settings - Fork 1
/
eq3.html
70 lines (69 loc) · 2.94 KB
/
eq3.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title> eq3 - cubic equation solver </title>
<script src="templates/jquery.js"></script>
<script src="templates/jquery-cookie.js"></script>
<script src="templates/jquery-tablesorter.js"></script>
<script src="templates/strftime.js"></script>
<script src="templates/main.js"></script>
<link rel="stylesheet" type="text/css" href="templates/reset.css" />
<link rel="stylesheet" type="text/css" href="templates/hack.css" />
<link rel="stylesheet" type="text/css" id="lights_css" />
<script>
var DOCNAME = 'eq3'
var PROJECT = 'eq'
//set the lights before rendering starts
set_lights()
</script>
</head>
<body>
<header>
<div class="container">
<div class="btn-container btn-lights-container">
<a href="#" class="btn btn-lights" id="lights">lights</a>
</div>
<div class="btn-container btn-home-container">
<a href="/" class="btn btn-home">luapower</a>
</div>
<table id="header_table">
<tr>
<td style="vertical-align: middle;" width="100%">
<h1> eq3 </h1>
<h2> cubic equation solver </h2>
<span class="doc" id="package_info"> </span>
</td>
<td style="vertical-align: middle;" align="right" style="height: 150px">
<table><tr><td>
<a href="https://github.com/luapower/eq" class="btn btn-rightside btn-github"><span class="icon"></span>View on GitHub</a>
</td></tr><tr><td>
<a href="https://github.com/luapower/eq/tarball/master" class="btn btn-rightside">Download as .tar.gz</a>
</td></tr><tr><td>
<a href="https://github.com/luapower/eq/zipball/master" class="btn btn-rightside">Download as .zip</a>
</td></tr></table>
</td>
</tr>
</table>
<div class="btn-container btn-discuss-container">
<a href="https://github.com/luapower/eq/issues/new" target="_blank" class="btn btn-rightside btn-discuss"><span class="icon"></span>Discuss</a>
</div>
</div>
</header>
<div class="container">
<div id="toc_container" class="toc_container doc"></div>
<section class="doc">
<span id="module_info"> </span>
<h2 id="local-solve_equation3-requireeq3"><code>local solve_equation3 = require'eq3'</code></h2>
<h2 id="solve_equation3a-b-c-d-epsilon---s1-s2-s3"><code>solve_equation3(a, b, c, d[, epsilon]) -> [s1[, s2[, s3]]]</code></h2>
<p>Solve the <a href="http://en.wikipedia.org/wiki/Cubic_function">3rd degree equation</a> <em>ax<sup>3</sup> + bx<sup>2</sup> + cx + d</em> and return all the real solutions.</p>
<p>Epsilon controls the precision at which the solver converges on close enough solutions.</p>
</section>
</div>
<div class="container">
<footer>
<span class="faint">[email protected] | <a href="http://unlicense.org/">public domain</a></span>
</footer>
</div>
</body>
</html>