 ## Symja computer algebra API

Example JSON calls:

Expand an expression:

{ "function": "expand",  "a1": "(x+1)^3" }

returns:

{"result":"1+3*x+3*x^2+x^3"}

Prime factorization of an integer number:

{ "function": "factorinteger",  "a1": "341550071728321" }

returns:

{"result":"{{10670053,1},{32010157,1}}"}

First-order derivative of a polynomial:

{ "function": "D",  "a1": "x^3 + x^2",  "a2": "x" }

returns:

{"result":"2*x+3*x^2"}

Solve two equations in x, y:

{ "function": "solve",  "a1": "{x^2==4,x+y^2==6}",  "a2": "{x,y}" }

returns:

{"result":"{{x->2,y->2},{x->2,y->-2},{x->-2,y->2*2^(1/2)},{x->-2,y->(-2)*2^(1/2)}}"}

You can use format " tex" or " mathml" as formatting options:

{ "function": "eval",  "a1": "D(Sin(x)+x^3 + x^2, x)", "format": "tex" }

returns:

{"result": "2\\,x+3\\,x^{2}+\\cos(x)"}

Read the Symja Manual for the description of the Symja language.

At the moment there's a timeout set to 30 seconds for the evaluation

This API is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either express or implied.