<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I am using the excellent gsll package (in the first instance), to provide an interface to quadpack for the mathematics system FriCAS. I'm slowly going through calculus/numerical-integration.lisp one function at a time and writing each one into FriCAS as I go. This means writing functions in FriCAS's own language SPAD which interface with gsll.<br><br></div>This is made harder by me being a lisp newbie.<br><br></div>However, I've come to integration-QAGP, and I've tried to run the test command (having first defined the function it calls). However, all I get is errors.<br><br></div>I'm using SBCL in emacs-slime, and I have installed gsll with quicklisp, so that I can call an integration routine with<br><br>* (gsll:integration-qng (lambda (x) (exp (- (* x x)))) 0.0 1.0)<br clear="all"><div><div><div><br></div><div>But the commands<br><br>* (defun integration-test-f454 (x)<br> (* (expt x 3) (* (log (abs (* (- (expt x 2) 1.0d0) (- (expt x 2) 2.0d0)))))))<br><br>* (gsll:integration-QAGp<br> 'integration-test-f454<br> (grid:copy-to (vector 0.0d0 1.0d0 (sqrt 2.0d0) 3.0d0))<br> 0.0d0 1.0d-3 1000)<br><br></div><div>just produces a long list of errors. Is "grid" a standard library, or does it need to be loaded first? (Told you I was a newbie...)<br><br></div><div>Thanks<br></div><div>Alasdair<br></div><div><div><div>-- <br><div class="gmail_signature"><div dir="ltr"><a href="http://www.facebook.com/alasdair.mcandrew" target="_blank"><img alt="http://www.facebook.com/alasdair.mcandrew" src="https://dl.dropboxusercontent.com/u/2796170/facebook.png"></a> <a href="https://plus.google.com/+AlasdairMcAndrew/posts" target="_blank"><img alt="https://plus.google.com/+AlasdairMcAndrew/posts" src="https://dl.dropboxusercontent.com/u/2796170/f-gplus_256-48.png"></a> <a href="https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108" target="_blank"><img alt="https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108" src="https://dl.dropboxusercontent.com/u/2796170/linkedin.png"></a> <a href="https://twitter.com/amca01" target="_blank"><img alt="https://twitter.com/amca01" src="https://dl.dropboxusercontent.com/u/2796170/twitter.png"></a> <a href="http://numbersandshapes.net" target="_blank"><img alt="http://numbersandshapes.net" src="https://dl.dropboxusercontent.com/u/2796170/wordpress.png"></a><br></div></div>
</div></div></div></div></div></div>