fractals 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,171 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <title>Class: Fractals::Julia [Ruby Fractal Library - 1.2.1]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
9
- <script type="text/javascript">
10
- // <![CDATA[
11
-
12
- function popupCode( url ) {
13
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
- }
15
-
16
- function toggleCode( id ) {
17
- if ( document.getElementById )
18
- elem = document.getElementById( id );
19
- else if ( document.all )
20
- elem = eval( "document.all." + id );
21
- else
22
- return false;
23
-
24
- elemStyle = elem.style;
25
-
26
- if ( elemStyle.display != "block" ) {
27
- elemStyle.display = "block"
28
- } else {
29
- elemStyle.display = "none"
30
- }
31
-
32
- return true;
33
- }
34
-
35
- // Make codeblocks hidden by default
36
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
-
38
- // ]]>
39
- </script>
40
-
41
- </head>
42
- <body>
43
-
44
-
45
- <div id="classHeader">
46
- <table class="header-table">
47
- <tr class="top-aligned-row">
48
- <td><strong>Class</strong></td>
49
- <td class="class-name-in-header">Fractals::Julia</td>
50
- </tr>
51
- <tr class="top-aligned-row">
52
- <td><strong>In:</strong></td>
53
- <td>
54
-
55
-
56
- <a href="../../files/lib/fractals_rb.html">
57
-
58
- lib/fractals.rb
59
-
60
- </a>
61
-
62
-
63
- <br />
64
-
65
- </td>
66
- </tr>
67
-
68
-
69
- <tr class="top-aligned-row">
70
- <td><strong>Parent:</strong></td>
71
- <td>
72
-
73
- <a href="Fractal.html">
74
-
75
- Fractals::Fractal
76
-
77
- </a>
78
-
79
- </td>
80
- </tr>
81
-
82
- </table>
83
- </div>
84
- <!-- banner header -->
85
-
86
- <div id="bodyContent">
87
-
88
- <div id="contextContent">
89
-
90
- <div id="description">
91
- <p>
92
- The <a href="Julia.html">Julia</a> set fractal.
93
- </p>
94
-
95
- </div>
96
-
97
- </div>
98
-
99
-
100
- <div id="method-list">
101
- <h3 class="section-bar">Methods</h3>
102
-
103
- <div class="name-list">
104
-
105
- <a href="#M000015">new</a>&nbsp;&nbsp;
106
-
107
- </div>
108
- </div>
109
-
110
- </div>
111
-
112
- <!-- if includes -->
113
-
114
- <div id="section">
115
-
116
-
117
-
118
-
119
- <!-- if method_list -->
120
-
121
- <div id="methods">
122
-
123
- <h3 class="section-bar">Public Class methods</h3>
124
-
125
-
126
- <div id="method-M000015" class="method-detail">
127
- <a name="M000015"></a>
128
-
129
- <div class="method-heading">
130
-
131
- <a href="#M000015" class="method-signature">
132
-
133
- <span class="method-name">new</span><span class="method-args">(c=Complex(0.36, 0.1))</span>
134
-
135
- </a>
136
-
137
- </div>
138
-
139
- <div class="method-description">
140
-
141
- <p><a class="source-toggle" href="#"
142
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
143
- <div class="method-source-code" id="M000015-source">
144
- <pre>
145
- <span class="ruby-comment cmt"># File lib/fractals.rb, line 74</span>
146
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">c</span>=<span class="ruby-constant">Complex</span>(<span class="ruby-value">0</span><span class="ruby-value">.36</span>, <span class="ruby-value">0</span><span class="ruby-value">.1</span>))
147
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">c</span>, {<span class="ruby-identifier">:p</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">2</span>}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
148
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:z</span>] = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:z</span>]<span class="ruby-operator">**</span><span class="ruby-identifier">args</span>[<span class="ruby-identifier">:p</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">c</span>
149
- <span class="ruby-keyword kw">end</span>
150
- <span class="ruby-keyword kw">end</span>
151
- </pre>
152
- </div>
153
-
154
- </div>
155
- </div>
156
-
157
-
158
-
159
- </div>
160
-
161
-
162
-
163
-
164
- </div>
165
-
166
- <div id="validator-badges">
167
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
168
- </div>
169
-
170
- </body>
171
- </html>
@@ -1,172 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <title>Class: Fractals::Mandelbrot [Ruby Fractal Library - 1.2.1]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
9
- <script type="text/javascript">
10
- // <![CDATA[
11
-
12
- function popupCode( url ) {
13
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
- }
15
-
16
- function toggleCode( id ) {
17
- if ( document.getElementById )
18
- elem = document.getElementById( id );
19
- else if ( document.all )
20
- elem = eval( "document.all." + id );
21
- else
22
- return false;
23
-
24
- elemStyle = elem.style;
25
-
26
- if ( elemStyle.display != "block" ) {
27
- elemStyle.display = "block"
28
- } else {
29
- elemStyle.display = "none"
30
- }
31
-
32
- return true;
33
- }
34
-
35
- // Make codeblocks hidden by default
36
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
-
38
- // ]]>
39
- </script>
40
-
41
- </head>
42
- <body>
43
-
44
-
45
- <div id="classHeader">
46
- <table class="header-table">
47
- <tr class="top-aligned-row">
48
- <td><strong>Class</strong></td>
49
- <td class="class-name-in-header">Fractals::Mandelbrot</td>
50
- </tr>
51
- <tr class="top-aligned-row">
52
- <td><strong>In:</strong></td>
53
- <td>
54
-
55
-
56
- <a href="../../files/lib/fractals_rb.html">
57
-
58
- lib/fractals.rb
59
-
60
- </a>
61
-
62
-
63
- <br />
64
-
65
- </td>
66
- </tr>
67
-
68
-
69
- <tr class="top-aligned-row">
70
- <td><strong>Parent:</strong></td>
71
- <td>
72
-
73
- <a href="Fractal.html">
74
-
75
- Fractals::Fractal
76
-
77
- </a>
78
-
79
- </td>
80
- </tr>
81
-
82
- </table>
83
- </div>
84
- <!-- banner header -->
85
-
86
- <div id="bodyContent">
87
-
88
- <div id="contextContent">
89
-
90
- <div id="description">
91
- <p>
92
- Benoît Mandelbrot&#8217;s <a href="Mandelbrot.html">Mandelbrot</a> set
93
- fractal.
94
- </p>
95
-
96
- </div>
97
-
98
- </div>
99
-
100
-
101
- <div id="method-list">
102
- <h3 class="section-bar">Methods</h3>
103
-
104
- <div class="name-list">
105
-
106
- <a href="#M000016">new</a>&nbsp;&nbsp;
107
-
108
- </div>
109
- </div>
110
-
111
- </div>
112
-
113
- <!-- if includes -->
114
-
115
- <div id="section">
116
-
117
-
118
-
119
-
120
- <!-- if method_list -->
121
-
122
- <div id="methods">
123
-
124
- <h3 class="section-bar">Public Class methods</h3>
125
-
126
-
127
- <div id="method-M000016" class="method-detail">
128
- <a name="M000016"></a>
129
-
130
- <div class="method-heading">
131
-
132
- <a href="#M000016" class="method-signature">
133
-
134
- <span class="method-name">new</span><span class="method-args">(c=Complex(-0.65, 0.0))</span>
135
-
136
- </a>
137
-
138
- </div>
139
-
140
- <div class="method-description">
141
-
142
- <p><a class="source-toggle" href="#"
143
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
144
- <div class="method-source-code" id="M000016-source">
145
- <pre>
146
- <span class="ruby-comment cmt"># File lib/fractals.rb, line 83</span>
147
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">c</span>=<span class="ruby-constant">Complex</span>(<span class="ruby-value">-0</span><span class="ruby-value">.65</span>, <span class="ruby-value">0</span><span class="ruby-value">.0</span>))
148
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">c</span>, {<span class="ruby-identifier">:z</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:p</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">2</span>}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
149
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:z</span>] = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:z</span>]<span class="ruby-operator">**</span><span class="ruby-identifier">args</span>[<span class="ruby-identifier">:p</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:c</span>]
150
- <span class="ruby-keyword kw">end</span>
151
- <span class="ruby-keyword kw">end</span>
152
- </pre>
153
- </div>
154
-
155
- </div>
156
- </div>
157
-
158
-
159
-
160
- </div>
161
-
162
-
163
-
164
-
165
- </div>
166
-
167
- <div id="validator-badges">
168
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
169
- </div>
170
-
171
- </body>
172
- </html>
@@ -1,173 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <title>Class: Fractals::Newton [Ruby Fractal Library - 1.2.1]</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
8
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
9
- <script type="text/javascript">
10
- // <![CDATA[
11
-
12
- function popupCode( url ) {
13
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
14
- }
15
-
16
- function toggleCode( id ) {
17
- if ( document.getElementById )
18
- elem = document.getElementById( id );
19
- else if ( document.all )
20
- elem = eval( "document.all." + id );
21
- else
22
- return false;
23
-
24
- elemStyle = elem.style;
25
-
26
- if ( elemStyle.display != "block" ) {
27
- elemStyle.display = "block"
28
- } else {
29
- elemStyle.display = "none"
30
- }
31
-
32
- return true;
33
- }
34
-
35
- // Make codeblocks hidden by default
36
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
37
-
38
- // ]]>
39
- </script>
40
-
41
- </head>
42
- <body>
43
-
44
-
45
- <div id="classHeader">
46
- <table class="header-table">
47
- <tr class="top-aligned-row">
48
- <td><strong>Class</strong></td>
49
- <td class="class-name-in-header">Fractals::Newton</td>
50
- </tr>
51
- <tr class="top-aligned-row">
52
- <td><strong>In:</strong></td>
53
- <td>
54
-
55
-
56
- <a href="../../files/lib/fractals_rb.html">
57
-
58
- lib/fractals.rb
59
-
60
- </a>
61
-
62
-
63
- <br />
64
-
65
- </td>
66
- </tr>
67
-
68
-
69
- <tr class="top-aligned-row">
70
- <td><strong>Parent:</strong></td>
71
- <td>
72
-
73
- <a href="Fractal.html">
74
-
75
- Fractals::Fractal
76
-
77
- </a>
78
-
79
- </td>
80
- </tr>
81
-
82
- </table>
83
- </div>
84
- <!-- banner header -->
85
-
86
- <div id="bodyContent">
87
-
88
- <div id="contextContent">
89
-
90
- <div id="description">
91
- <p>
92
- The <a href="Newton.html">Newton</a> fractal.
93
- </p>
94
-
95
- </div>
96
-
97
- </div>
98
-
99
-
100
- <div id="method-list">
101
- <h3 class="section-bar">Methods</h3>
102
-
103
- <div class="name-list">
104
-
105
- <a href="#M000017">new</a>&nbsp;&nbsp;
106
-
107
- </div>
108
- </div>
109
-
110
- </div>
111
-
112
- <!-- if includes -->
113
-
114
- <div id="section">
115
-
116
-
117
-
118
-
119
- <!-- if method_list -->
120
-
121
- <div id="methods">
122
-
123
- <h3 class="section-bar">Public Class methods</h3>
124
-
125
-
126
- <div id="method-M000017" class="method-detail">
127
- <a name="M000017"></a>
128
-
129
- <div class="method-heading">
130
-
131
- <a href="#M000017" class="method-signature">
132
-
133
- <span class="method-name">new</span><span class="method-args">(c=Complex(0.0, 0.0))</span>
134
-
135
- </a>
136
-
137
- </div>
138
-
139
- <div class="method-description">
140
-
141
- <p><a class="source-toggle" href="#"
142
- onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
143
- <div class="method-source-code" id="M000017-source">
144
- <pre>
145
- <span class="ruby-comment cmt"># File lib/fractals.rb, line 92</span>
146
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">c</span>=<span class="ruby-constant">Complex</span>(<span class="ruby-value">0</span><span class="ruby-value">.0</span>, <span class="ruby-value">0</span><span class="ruby-value">.0</span>))
147
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">c</span>, {<span class="ruby-identifier">:a</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">1</span>, <span class="ruby-identifier">:pz</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">lambda</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">z</span><span class="ruby-operator">|</span> <span class="ruby-identifier">z</span><span class="ruby-operator">**</span><span class="ruby-value">3</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span> }}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">args</span><span class="ruby-operator">|</span>
148
- <span class="ruby-identifier">dx_pz</span> = <span class="ruby-identifier">derivative</span>(<span class="ruby-value">0</span><span class="ruby-value">.0001</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:pz</span>].<span class="ruby-identifier">call</span>(<span class="ruby-identifier">x</span>) }
149
- <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:z</span>] = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:z</span>] <span class="ruby-operator">-</span> <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:a</span>] <span class="ruby-operator">*</span>
150
- (<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:pz</span>].<span class="ruby-identifier">call</span>(<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:z</span>]) <span class="ruby-operator">/</span> (<span class="ruby-identifier">dx_pz</span>.<span class="ruby-identifier">call</span>(<span class="ruby-identifier">args</span>[<span class="ruby-identifier">:z</span>])))
151
- <span class="ruby-keyword kw">end</span>
152
- <span class="ruby-keyword kw">end</span>
153
- </pre>
154
- </div>
155
-
156
- </div>
157
- </div>
158
-
159
-
160
-
161
- </div>
162
-
163
-
164
-
165
-
166
- </div>
167
-
168
- <div id="validator-badges">
169
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
170
- </div>
171
-
172
- </body>
173
- </html>