Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.439 kB
// Uses 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)");
print "Evaluate x^2 + 2*x + 1 + (x + 1)^2 in environment x=2\n";
print $maxima->evaluate("ev(x^2 + 2*x + 1 + (x + 1)^2, x=2)");
?>
Jump to Line
Something went wrong with that request. Please try again.