1{ 2 "cells" : 3 [ 4 { 5 "cell_origin" : "client", 6 "cell_type" : "latex", 7 "cells" : 8 [ 9 { 10 "cell_origin" : "client", 11 "cell_type" : "latex_view", 12 "source" : "\\algorithm{simplify}{Simplify the scalar part of an expression.}\n\nWhen expressions (or sub-expressions) involve scalars, simplification of such expressions can be\n`outsourced' to an external scalar computer algebra system, at present either Sympy or Mathematica.\nThe \\algo{simplify} algorithm finds all scalar sub-expressions and runs the simplification algorithm\nof one of these systems on them." 13 } 14 ], 15 "hidden" : true, 16 "source" : "\\algorithm{simplify}{Simplify the scalar part of an expression.}\n\nWhen expressions (or sub-expressions) involve scalars, simplification of such expressions can be\n`outsourced' to an external scalar computer algebra system, at present either Sympy or Mathematica.\nThe \\algo{simplify} algorithm finds all scalar sub-expressions and runs the simplification algorithm\nof one of these systems on them." 17 }, 18 { 19 "cell_origin" : "client", 20 "cell_type" : "input", 21 "cells" : 22 [ 23 { 24 "cell_origin" : "server", 25 "cell_type" : "latex_view", 26 "cells" : 27 [ 28 { 29 "cell_origin" : "server", 30 "cell_type" : "input_form", 31 "source" : "((\\sin(x))**2 + (\\cos(x))**2) A_{m}" 32 } 33 ], 34 "source" : "\\begin{dmath*}{}\\left({\\left(\\sin{x}\\right)}^{2}+{\\left(\\cos{x}\\right)}^{2}\\right) A_{m}\\end{dmath*}" 35 } 36 ], 37 "source" : "ex:= (\\sin{x}**2 + \\cos{x}**2) A_{m};" 38 }, 39 { 40 "cell_origin" : "client", 41 "cell_type" : "input", 42 "cells" : 43 [ 44 { 45 "cell_origin" : "server", 46 "cell_type" : "latex_view", 47 "cells" : 48 [ 49 { 50 "cell_origin" : "server", 51 "cell_type" : "input_form", 52 "source" : "A_{m}" 53 } 54 ], 55 "source" : "\\begin{dmath*}{}A_{m}\\end{dmath*}" 56 } 57 ], 58 "source" : "simplify(_);" 59 }, 60 { 61 "cell_origin" : "client", 62 "cell_type" : "latex", 63 "cells" : 64 [ 65 { 66 "cell_origin" : "client", 67 "cell_type" : "latex_view", 68 "source" : "By default it will use the Sympy backend, but if you have compiled Cadabra on a system which has Mathematica installed, \nyou can also switch it to use Mathematica instead, by using" 69 } 70 ], 71 "hidden" : true, 72 "source" : "By default it will use the Sympy backend, but if you have compiled Cadabra on a system which has Mathematica installed, \nyou can also switch it to use Mathematica instead, by using" 73 }, 74 { 75 "cell_origin" : "client", 76 "cell_type" : "input", 77 "source" : "kernel(scalar_backend=\"mathematica\")" 78 }, 79 { 80 "cell_origin" : "client", 81 "cell_type" : "input", 82 "source" : "" 83 } 84 ], 85 "description" : "Cadabra JSON notebook format", 86 "version" : 1 87} 88