Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 30 lines (23 sloc) 0.896 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
maxima-json-rpc provide API for evaluating maxima expression through HTTP POST JSON-RPC. *Isolated* multiuser accesing is not possible now.

Licence: MIT

Author: Michael Filonenko <filonenko.mikhail at gmail dot com>

Depends on:
  embeddable-maxima
  restas
  cl-json

Usage:
  git clone ...
  sbcl
    (pushnew "/path/to/maxima-json-rpc/" asdf:*central-registry*)
    (pushnew "/path/to/embeddable-maxima/" asdf:*central-registry*)
    (ql:quickload :maxima-json-rpc)
    (restas:start :maxima-json-rpc :port 9090)


PHP example using JSON-RPC PHP http://jsonrpcphp.org:
<?php
  require_once 'jsonRPCClient.php';
  $maxima = new jsonRPCClient('http://127.0.0.1:9090/jsonrpc');
  print "Maxima evaluator\n";
  print "Evaluate ratsimp(x^2 + 2*x + 1 - (x + 1)^2)\n"
  print $maxima->evaluate("ratsimp(x^2 + 2*x + 1 - (x + 1)^2)");
?>

See examples/ for javascript/jquery/jquery-json-rpc example.
Something went wrong with that request. Please try again.