Skip to content

Commit 6e4b16a

Browse files
committed
Example smarter output
1 parent 521d0dc commit 6e4b16a

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

www/doc/1.2/release-notes.html

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="utf-8" />
55
<title>Herbie 1.2 Release Notes</title>
66
<link rel='stylesheet' type='text/css' href="../../main.css">
7-
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
87
<script type="text/javascript" src="compare.js"></script>
8+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
99
</head>
1010
<body>
1111
<header>
@@ -88,19 +88,27 @@ <h2>Beta-quality features</h2>
8888
<a href="options.html">option</a> controls this feature.</li>
8989
</ul>
9090

91-
<!-- TODO Update plot somehow? -->
9291
<figure class="showcase" style="background: white; border: 1px solid gray;">
93-
<style scoped>
94-
line { pointer-events: all; }
95-
.old, .new { stroke-width: 3px; stroke-opacity: 1.0; fill-opacity: 1.0; }
96-
.old { stroke: lightgray; fill: lightgray; }
97-
.new { stroke: darkgreen; fill: darkgreen; }
98-
.gridline, .guide { stroke: lightgray; }
99-
text { text-anchor: middle; }
100-
</style>
101-
<svg id="results" width="525" height="320"></svg>
102-
<script>draw_results(d3.select("#results"))</script>
103-
<figcaption>Improvement on the Hamming benchmarks from Herbie 1.0 to Herbie 1.1. The improved series expansions, expanded trigonometric and hyperbolic knowledge, and miscellaneous bug fixes have made Herbie smarter.</figcaption>
92+
<style scoped>.arrow { text-align: center; font-size: 200%; }</style>
93+
<div class="program">\[c0 \cdot \sqrt{\frac{A}{V \cdot \ell}}\]</div>
94+
<div class="arrow"></div>
95+
<div class="program">\[\begin{array}{l}
96+
\mathbf{if}\;\frac{1}{V \cdot \ell} \le -3.767671897931721 \cdot 10^{+27}:\\
97+
\;\;\;\;\frac{c0 \cdot \sqrt{1}}{\sqrt{\frac{V \cdot \ell}{A}}}\\
98+
99+
\mathbf{elif}\;\frac{1}{V \cdot \ell} \le -2.9824307461679933 \cdot 10^{-248}:\\
100+
\;\;\;\;\left(c0 \cdot \sqrt{\sqrt{\frac{A}{V \cdot \ell}}}\right) \cdot \sqrt{\sqrt{\frac{A}{V \cdot \ell}}}\\
101+
102+
\mathbf{elif}\;\frac{1}{V \cdot \ell} \le 7.59312080698644 \cdot 10^{-301}:\\
103+
\;\;\;\;c0 \cdot \sqrt{\frac{\frac{A}{V}}{\ell}}\\
104+
105+
\mathbf{else}:\\
106+
\;\;\;\;c0 \cdot \frac{\sqrt{A}}{\sqrt{V \cdot \ell}}\\
107+
108+
\end{array}\]</div>
109+
<figcaption>A program produced by the new, more create branch
110+
inference system in Herbie 1.2. Herbie 1.2 is more creative and
111+
produces more accurate output than prior versions.</figcaption>
104112
</figure>
105113

106114
<h2>Usability improvements</h2>

0 commit comments

Comments
 (0)