{ "cells" : [ { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}B A+C A+D B\\end{dmath*}" } ], "source" : "ex:=B*A+C*A+D*B;" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}B D\\end{dmath*}" } ], "source" : "ex[2]=sort_product(ex[2]);" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}B A+C A+B D\\end{dmath*}" } ], "source" : "ex;" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}\\int{}\\left(A+B+C+D\\right)\\, {\\rm d}x\\end{dmath*}" } ], "source" : "ex:=\\int{ A + B + C + D}{x};" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}C\\end{dmath*}" } ], "source" : "ex[0][2];" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}Q\\end{dmath*}" }, { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}\\int{}\\left(A+B+C+D\\right)\\, {\\rm d}x\\end{dmath*}" } ], "source" : "ex[0][2]=substitute(ex[0][2], $C->Q$);\nex;" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}A\\end{dmath*}" }, { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}A+A_{0}+A_{1}+A_{2}+A_{3}+A_{4}+A_{5}+A_{6}+A_{7}+A_{8}+A_{9}\\end{dmath*}" } ], "source" : "ex3:=A;\nfor i in range(10):\n\tex3 = ex3 + Ex('A_{'+str(i)+'}')\nex3;" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}C-D\\end{dmath*}" } ], "source" : "ex4:=C - D;" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}A+A_{0}+A_{1}+A_{2}+A_{3}+A_{4}+A_{5}+A_{6}+A_{7}+A_{8}+A_{9}-C+D\\end{dmath*}" } ], "source" : "ex5=ex3-ex4;" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "latex_view", "source" : "\\begin{dmath*}{}A+B_{0}+B_{1}+B_{2}+B_{3}\\end{dmath*}" } ], "source" : "substitute(ex5[:5], $A_{a?}->B_{a?}$);" }, { "cell_origin" : "client", "cell_type" : "input", "cells" : [ { "cell_origin" : "server", "cell_type" : "error", "source" : "{\\color{red}{\\begin{verbatim}Traceback (most recent call last):\n File \"\", line 1, in \ncadabra2.ArgumentException: index 15 out of range, must be smaller than 13\n\\end{verbatim}}}" } ], "source" : "ex5[15];" }, { "cell_origin" : "client", "cell_type" : "input", "source" : "" } ], "description" : "Cadabra JSON notebook format", "version" : 1 }