Manveru
Manveru

Reputation: 187

How the input is provided in LISP?

I am totally new to lisp, but I came accross this code https://github.com/wjur/sym-diff-lisp/blob/master/sym-diff.lsp which calculates derivatives in lisp and I wanted to know how to run it. I see the examples in comments in the beginning but I am not sure how to run it. I just installed clisp in ubuntu and tried to run 'clisp sym-diff.lsp' but I dont know where am i supposed to pass the exact functions that I want to differentiate. Should I pass it as arguments when running sym-diff.lsp?

Upvotes: 0

Views: 138

Answers (1)

Francis King
Francis King

Reputation: 1732

Start CLISP - you should have a terminal window, which is waiting for you to do something. This is your REPL.

enter image description here

You have to load the code, thus:

  • (cd "file-location")
  • (load "filename")

Once you done that then you can type in your examples into the REPL.

Upvotes: 1

Related Questions