An IMathics Preview

This notebook is a demo of IMathics: A Mathics backend combined with the IPython interactive environment.

Basics

Basic queries of the Mathics Backend:

In [*]:
Solve[Cos[x^2] == 1, x]
Out[*]:
{{x -> 0}, {x -> -Sqrt[Pi] Sqrt[2]}, {x -> Sqrt[Pi] Sqrt[2]}}

You can define multiline expressions too

In [*]:
x = 2
If[x == 1,
   x = 3,
   x = 5]
x+1
Out[*]:
2
Out[*]:
5
Out[*]:
6
In [*]:
N[Pi/7, 100]
Out[*]:
0.4487989505128276054946633404685004120281670570535865458535635131868309151837441426611478321917310099

There is even support for basic errors reporting

In [*]:
Log[1.5)
General::syntaxParse error at or near token ).

Graphics to come soon!

In [*]:
Plot[Sin[x], {x, -5, 5}]
Out[*]:
-Graphics-
In [*]:
Plot3D[Sin[x y^2], {x, -5, 5}, {y, -5, 5}]
Out[*]:
-Graphics3D-
In [ ]: