Skip to content

Commit

Permalink
Desugaring matches parametric ops on 'real rather than 'binary64 or '…
Browse files Browse the repository at this point in the history
…binary32
  • Loading branch information
DavidThien committed Feb 7, 2019
1 parent 0b5601f commit 670da46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/web/make-graph.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@
baseline-error oracle-error all-alts)
result)
(define precision (test-precision test))
;; render-history expects the precision to be 'real rather than 'binary64 or 'binary32
;; remove this when the number system interface is added
(define precision* (if (set-member? '(binary64 binary32) precision)
'real
precision))

(fprintf out "<!doctype html>\n")
(write-xexpr
Expand Down Expand Up @@ -301,7 +306,7 @@
(section ([id "history"])
(h1 "Derivation")
(ol ([class "history"])
,@(render-history end-alt (mk-pcontext newpoints newexacts) (mk-pcontext points exacts) precision)))
,@(render-history end-alt (mk-pcontext newpoints newexacts) (mk-pcontext points exacts) precision*)))

,(render-reproduction test)))
out))
Expand Down

0 comments on commit 670da46

Please sign in to comment.