<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>The zgrid procedure is documented as</div><div><br></div><div><span class="Apple-style-span" style="font-family: serif; "><div class="SIntrapara" style="display: block; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; "><table cellspacing="0" class="boxed" style="width: 559px; background-color: rgb(232, 232, 255); "><tbody><tr><td style="padding-left: 0px; padding-right: 0px; "><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">(</span><a name="(dep._((lib._plot/extend..ss)._zgrid))"></a><a name="(def._((lib._plot/extend..ss)._zgrid))"></a><span title="Provided from: plot/extend"><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/plot/extend.html#(def._((lib._plot/extend..ss)._zgrid))" class="ScmValLink" style="text-decoration: none; color: blue; ">zgrid</a></span></span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">f</span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">xs</span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">ys</span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">)</span><span class="hspace" style="font-family: monospace; ">&nbsp;</span>→<span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">(</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/Data-structure_Contracts.html#(def._((lib._scheme/private/contract..ss)._listof))" class="ScmValLink" style="text-decoration: none; color: blue; ">listof</a></span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">(</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/Data-structure_Contracts.html#(def._((lib._scheme/private/contract..ss)._listof))" class="ScmValLink" style="text-decoration: none; color: blue; ">listof</a></span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/numbers.html#(def._((quote._~23~25kernel)._real~3f))" class="ScmValLink" style="text-decoration: none; color: blue; ">real?</a></span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">)</span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">)</span></td></tr><tr><td style="padding-left: 0px; padding-right: 0px; "><span class="hspace" style="font-family: monospace; ">&nbsp;&nbsp;</span><span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">f</span><span class="hspace" style="font-family: monospace; ">&nbsp;</span>:<span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">(</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/numbers.html#(def._((quote._~23~25kernel)._real~3f))" class="ScmValLink" style="text-decoration: none; color: blue; ">real?</a></span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/numbers.html#(def._((quote._~23~25kernel)._real~3f))" class="ScmValLink" style="text-decoration: none; color: blue; ">real?</a></span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">.&nbsp;</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/Function_Contracts.html#(form._((lib._scheme/contract..ss)._-~3e))" class="ScmStxLink" style="text-decoration: none; color: black; font-weight: bold; ">-&gt;</a></span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">&nbsp;.</span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/numbers.html#(def._((quote._~23~25kernel)._real~3f))" class="ScmValLink" style="text-decoration: none; color: blue; ">real?</a></span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">)</span></td></tr><tr><td style="padding-left: 0px; padding-right: 0px; "><span class="hspace" style="font-family: monospace; ">&nbsp;&nbsp;</span><span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">xs</span><span class="hspace" style="font-family: monospace; ">&nbsp;</span>:<span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">(</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/Data-structure_Contracts.html#(def._((lib._scheme/private/contract..ss)._listof))" class="ScmValLink" style="text-decoration: none; color: blue; ">listof</a></span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/numbers.html#(def._((quote._~23~25kernel)._real~3f))" class="ScmValLink" style="text-decoration: none; color: blue; ">real?</a></span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">)</span></td></tr><tr><td style="padding-left: 0px; padding-right: 0px; "><span class="hspace" style="font-family: monospace; ">&nbsp;&nbsp;</span><span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">ys</span><span class="hspace" style="font-family: monospace; ">&nbsp;</span>:<span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">(</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/Data-structure_Contracts.html#(def._((lib._scheme/private/contract..ss)._listof))" class="ScmValLink" style="text-decoration: none; color: blue; ">listof</a></span><span class="hspace" style="font-family: monospace; ">&nbsp;</span><span class="ScmSym" style="font-family: monospace; color: rgb(38, 38, 128); "><a href="file:///Applications/PLT%20Scheme%20v4.2.2/doc/reference/numbers.html#(def._((quote._~23~25kernel)._real~3f))" class="ScmValLink" style="text-decoration: none; color: blue; ">real?</a></span><span class="ScmPn" style="font-family: monospace; color: rgb(132, 60, 36); ">)</span></td></tr></tbody></table></div><div class="SIntrapara" style="display: block; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; ">Given a function that consumes&nbsp;<span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">x</span>&nbsp;and&nbsp;<span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">y</span>&nbsp;to produce&nbsp;<span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">z</span>, a list of&nbsp;<span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">x</span>s, and a list of&nbsp;<span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">y</span>s, produces a list of&nbsp;<span class="ScmVar" style="font-family: monospace; color: rgb(38, 38, 128); font-style: italic; ">z</span>&nbsp;column values.</div><div class="SIntrapara" style="display: block; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font-size: 14px; ">But errors out indicating the procedure takes 4 parameters</div><div class="SIntrapara" style="display: block; margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font-size: 14px; ">It is defined in renderer-helpers.ss as</div></span></div><div style="font-size: 13px; ">&nbsp;&nbsp;; zgrid : (number number -&gt; number) listof-number listof-number -&gt; listof-listof number</div><div style="font-size: 13px; ">&nbsp;&nbsp;(define (zgrid func x-vals y-vals samples)</div><div style="font-size: 13px; ">&nbsp;&nbsp; &nbsp;(map (lambda (x) (map (lambda (y) (func x y)) y-vals)) x-vals))</div><div><br class="webkit-block-placeholder"></div><div>
<span class="Apple-style-span" style="font-size: 12px; "><div>The 'samples' parameter is not referenced in the body.</div><div><br></div><div>How should the definition or use be corrected?<br class="Apple-interchange-newline"><br class="webkit-block-placeholder"></div><div>Thanks</div><div>-------------------------------</div><div>Lawrence J. Winkler, M.S., J.D.</div><div>5306 Loruth Ter</div><div>Madison Wisconsin 53711</div><div>Phone: 608-274-0414</div><div>Mobile: 608-345-0627</div><div>Email: <a href="mailto:winkllj@acm.org">winkllj@acm.org</a></div><div>--------------------------------</div><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>