(* ::Package:: *)

(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)
(* typically will have the same name as this file except ending in      *)
(* ".nb" instead of ".m".                                               *)
(*                                                                      *)
(* This file is intended to be loaded into the Mathematica kernel using *)
(* the package loading commands Get or Needs.  Doing so is equivalent   *)
(* to using the Evaluate Initialization Cells menu command in the front *)
(* end.                                                                 *)
(*                                                                      *)
(* DO NOT EDIT THIS FILE.  This entire file is regenerated              *)
(* automatically each time the parent Notebook file is saved in the     *)
(* Mathematica front end.  Any changes you make to this file will be    *)
(* overwritten.                                                         *)
(************************************************************************)



SetDirectory["C:\\drorbn\\AcademicPensieve\\Projects\\OneCo-1606"];
<< OneCo.m


bas=Cases[BLBasis[{j,k}],\[Epsilon]*U[__]]


Sum[Subscript[f, i][Subscript[b, j],Subscript[b, k]]bas[[i]], {i,Length@bas}]


\[Rho]0[j_,k_] :=\[Epsilon] U[Subscript[c, j]] Subscript[f, 1][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, k]] Subscript[f, 2][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, j],Subscript[c, j]] Subscript[f, 3][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, j],Subscript[c, k]] Subscript[f, 4][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, k],Subscript[c, k]] Subscript[f, 5][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, j],Subscript[w, j]] Subscript[f, 6][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, j],Subscript[w, k]] Subscript[f, 7][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, k],Subscript[w, j]] Subscript[f, 8][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, k],Subscript[w, k]] Subscript[f, 9][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, j],Subscript[u, j],Subscript[w, j]] Subscript[f, 10][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, j],Subscript[u, j],Subscript[w, k]] Subscript[f, 11][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, j],Subscript[u, k],Subscript[w, j]] Subscript[f, 12][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, j],Subscript[u, k],Subscript[w, k]] Subscript[f, 13][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, k],Subscript[u, j],Subscript[w, j]] Subscript[f, 14][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, k],Subscript[u, j],Subscript[w, k]] Subscript[f, 15][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, k],Subscript[u, k],Subscript[w, j]] Subscript[f, 16][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[c, k],Subscript[u, k],Subscript[w, k]] Subscript[f, 17][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, j],Subscript[u, j],Subscript[w, j],Subscript[w, j]] Subscript[f, 18][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, j],Subscript[u, j],Subscript[w, j],Subscript[w, k]] Subscript[f, 19][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, j],Subscript[u, j],Subscript[w, k],Subscript[w, k]] Subscript[f, 20][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, j],Subscript[u, k],Subscript[w, j],Subscript[w, j]] Subscript[f, 21][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, j],Subscript[u, k],Subscript[w, j],Subscript[w, k]] Subscript[f, 22][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, j],Subscript[u, k],Subscript[w, k],Subscript[w, k]] Subscript[f, 23][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, k],Subscript[u, k],Subscript[w, j],Subscript[w, j]] Subscript[f, 24][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, k],Subscript[u, k],Subscript[w, j],Subscript[w, k]] Subscript[f, 25][Subscript[b, j],Subscript[b, k]]+\[Epsilon] U[Subscript[u, k],Subscript[u, k],Subscript[w, k],Subscript[w, k]] Subscript[f, 26][Subscript[b, j],Subscript[b, k]]


R[j_,k_][\[ScriptCapitalE]_] :=  Simp[\[ScriptCapitalE] // Ea[j,k] // (#+B[\[Rho]0[j,k],#])&]


R3[\[ScriptCapitalE]_] := Simp[(\[ScriptCapitalE]//R[1,2] // R[1,3] // R[2,3])-(\[ScriptCapitalE]//R[2,3] // R[1,3] // R[1,2])]



