Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 14 lines (10 sloc) 0.439 kb
e227339b »
2012-01-23 initial commit
1 // Uses JSON-RPC PHP http://jsonrpcphp.org
2
3 <?php
4 require_once 'jsonRPCClient.php';
5 $maxima = new jsonRPCClient('http://127.0.0.1:9090/jsonrpc');
6 print "Maxima evaluator\n";
7 print "Evaluate ratsimp(x^2 + 2*x + 1 - (x + 1)^2)\n";
8 print $maxima->evaluate("ratsimp(x^2 + 2*x + 1 - (x + 1)^2)");
9
10 print "Evaluate x^2 + 2*x + 1 + (x + 1)^2 in environment x=2\n";
11 print $maxima->evaluate("ev(x^2 + 2*x + 1 + (x + 1)^2, x=2)");
12 ?>
13
Something went wrong with that request. Please try again.