Skip to content

Commit f302e1e

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 7f74cfe + fb80ba5 commit f302e1e

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

README.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ See link:https://mihxil.github.io/math/[this file in html] for proper display of
3333

3434
The core of this project is quite abstract and more or less theoretical. But here are some handy things in this.
3535

36+
NOTE: examples in this section use java 25's link:https://openjdk.org/jeps/512[compact source files]
37+
3638
== statistics
3739

3840
Take dependency on link:https://central.sonatype.com/artifact/org.meeuw.math/mihxil-statistics[`org.meeuw.math:mihxil-statistics`] and use things like

docs/DEMO.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ <h2 id="demo_dynamicdate">Dynamic date parsing</h2>
11021102
</div>
11031103
<div id="footer">
11041104
<div id="footer-text">
1105-
Last updated 2025-11-23 15:12:54 UTC
1105+
Last updated 2025-11-23 15:29:17 UTC
11061106
</div>
11071107
</div>
11081108
</body>

docs/index.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,18 @@ <h2 id="_quickstart">1. quickstart</h2>
159159
<div class="paragraph">
160160
<p>The core of this project is quite abstract and more or less theoretical. But here are some handy things in this.</p>
161161
</div>
162+
<div class="admonitionblock note">
163+
<table>
164+
<tr>
165+
<td class="icon">
166+
<div class="title">Note</div>
167+
</td>
168+
<td class="content">
169+
examples in this section use java 25&#8217;s <a href="https://openjdk.org/jeps/512">compact source files</a>
170+
</td>
171+
</tr>
172+
</table>
173+
</div>
162174
<div class="sect2">
163175
<h3 id="_statistics">1.1. statistics</h3>
164176
<div class="paragraph">
@@ -174,7 +186,7 @@ <h3 id="_statistics">1.1. statistics</h3>
174186
.build();
175187

176188
windowed.accept(<span class="integer">100</span>, <span class="integer">101</span>, <span class="integer">102</span>);
177-
<span class="predefined-type">System</span>.out.println(windowed.get()); <span class="comment">// prints 101.0 ± 0.8</span>
189+
IO.println(windowed.get()); <span class="comment">// prints 101.0 ± 0.8</span>
178190
}</code></pre>
179191
</div>
180192
</div>
@@ -189,7 +201,7 @@ <h3 id="_date_parsing">1.2. date parsing</h3>
189201
<pre class="CodeRay highlight"><code data-lang="java"><span class="keyword">import</span> <span class="include">org.meeuw.time.parser.DynamicDateTime</span>;
190202
<span class="type">void</span> main() {
191203
DynamicDateTime dynamicDateTime = <span class="keyword">new</span> DynamicDateTime();
192-
<span class="predefined-type">System</span>.out.println(
204+
IO.println(
193205
<span class="comment">// Prints the date 5 days from now</span>
194206
dynamicDateTime.apply(<span class="string"><span class="delimiter">&quot;</span><span class="content">today + 5 days</span><span class="delimiter">&quot;</span></span>).toLocalDate()
195207
);
@@ -214,7 +226,7 @@ <h3 id="_algebraic_structures">1.3. algebraic structures</h3>
214226
<span class="comment">// Quaternions over rational numbers</span>
215227
<span class="type">var</span> a = H_Q.fromString(<span class="string"><span class="delimiter">&quot;</span><span class="content">1 + 2i + 3j + 4k</span><span class="delimiter">&quot;</span></span>);
216228
<span class="type">var</span> b = H_Q.fromString(<span class="string"><span class="delimiter">&quot;</span><span class="content">2 - 2i + 3j - 4k</span><span class="delimiter">&quot;</span></span>);
217-
<span class="predefined-type">System</span>.out.println(a.times(b)); <span class="comment">// prints 13 - 22i + 9j + 16k</span>
229+
IO.println(a.times(b)); <span class="comment">// prints 13 - 22i + 9j + 16k</span>
218230
}</code></pre>
219231
</div>
220232
</div>

0 commit comments

Comments
 (0)