(* ::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.                                                         *)
(************************************************************************)



(* ::Input::Initialization:: *)
SetDirectory["C:\\drorbn\\AcademicPensieve\\People\\Vo"];


(* ::Input::Initialization:: *)
\!\(
\*SubsuperscriptBox[\(R\), \(i_, j_\), \(+\)] := \(\[DoubleStruckCapitalE][
\*SubscriptBox[\(b\), \(i\)] 
\*SubscriptBox[\(c\), \(j\)] + 
\*SubsuperscriptBox[\(b\), \(i\), \(-1\)] \((
\*SuperscriptBox[\(E\), 
SubscriptBox[\(b\), \(i\)]] - 1)\) 
\*SubscriptBox[\(u\), \(i\)] 
\*SubscriptBox[\(w\), \(j\)]]\)\); \!\(
\*SubsuperscriptBox[\(R\), \(i_, j_\), \(-\)] := \(\[DoubleStruckCapitalE][\(-
\*SubscriptBox[\(b\), \(i\)]\) 
\*SubscriptBox[\(c\), \(j\)] + 
\*SubsuperscriptBox[\(b\), \(i\), \(-1\)] \((
\*SuperscriptBox[\(E\), \(-
\*SubscriptBox[\(b\), \(i\)]\)] - 1)\) 
\*SubscriptBox[\(u\), \(i\)] 
\*SubscriptBox[\(w\), \(j\)]]\)\);


(* ::Input::Initialization:: *)
CF[\[Omega]_. \[DoubleStruckCapitalE][Q_]] := Simplify[\[Omega]]\[DoubleStruckCapitalE][Simplify[Q]];
\[DoubleStruckCapitalE] /: \[DoubleStruckCapitalE][Q1_]\[DoubleStruckCapitalE][Q2_] := CF@\[DoubleStruckCapitalE][Q1+Q2];
\[Omega]1_. \[DoubleStruckCapitalE][Q1_] \[Congruent] \[Omega]2_. \[DoubleStruckCapitalE][Q2_] := Simplify[\[Omega]1==\[Omega]2\[And]Q1==Q2];


(* ::Input::Initialization:: *)
Subscript[N, Subscript[u, i_] Subscript[c, j_]->k_][\[Omega]_. \[DoubleStruckCapitalE][Q_]] := CF[
\[Omega] \[DoubleStruckCapitalE][E^-\[Gamma] \[Beta] Subscript[u, k]+\[Gamma] Subscript[c, k]+(Q/.Subscript[c, j]|Subscript[u, i]->0)]/.{\[Gamma]->\!\(
\*SubscriptBox[\(\[PartialD]\), 
SubscriptBox[\(c\), \(j\)]]Q\),\[Beta]->\!\(
\*SubscriptBox[\(\[PartialD]\), 
SubscriptBox[\(u\), \(i\)]]Q\)}];
Subscript[N, Subscript[w, i_] Subscript[c, j_]->k_][\[Omega]_. \[DoubleStruckCapitalE][Q_]] := CF[
\[Omega] \[DoubleStruckCapitalE][E^\[Gamma] \[Alpha] Subscript[w, k]+\[Gamma] Subscript[c, k]+(Q/.Subscript[c, j]|Subscript[w, i]->0)]/.{\[Gamma]->\!\(
\*SubscriptBox[\(\[PartialD]\), 
SubscriptBox[\(c\), \(j\)]]Q\),\[Alpha]->\!\(
\*SubscriptBox[\(\[PartialD]\), 
SubscriptBox[\(w\), \(i\)]]Q\)}];
Subscript[N, Subscript[w, i_] Subscript[u, j_]->k_][\[Omega]_. \[DoubleStruckCapitalE][Q_]] := CF[
\[Nu] \[Omega] \[DoubleStruckCapitalE][-Subscript[b, k]\[Nu] \[Alpha] \[Beta]+\[Nu] \[Beta] Subscript[u, k]+\[Nu] \[Delta] Subscript[u, k] Subscript[w, k]+\[Nu] \[Alpha] Subscript[w, k] +(Q/.Subscript[w, i]|Subscript[u, j]->0)] /. \[Nu]-> (1+Subscript[b, k] \[Delta])^-1 /. {\[Alpha]->\!\(
\*SubscriptBox[\(\[PartialD]\), 
SubscriptBox[\(w\), \(i\)]]Q\)/.Subscript[u, j]->0, \[Beta]->\!\(
\*SubscriptBox[\(\[PartialD]\), 
SubscriptBox[\(u\), \(j\)]]Q\)/.Subscript[w, i]->0, \[Delta]->\!\(
\*SubscriptBox[\(\[PartialD]\), \(
\*SubscriptBox[\(w\), \(i\)], 
\*SubscriptBox[\(u\), \(j\)]\)]Q\)}];


(* ::Input::Initialization:: *)
Subscript[m, i_,j_->k_][\[Omega]_. \[DoubleStruckCapitalE][Q_]] :=CF[Module[{x},
(\[Omega] \[DoubleStruckCapitalE][Q] /. Subscript[b, i|j]->Subscript[b, k] // Subscript[N, Subscript[w, i] Subscript[c, j]->x]//Subscript[N, Subscript[u, i] Subscript[c, x]->x]//Subscript[N, Subscript[w, x] Subscript[u, j]->x]) /. {Subscript[c, i]->Subscript[c, k],Subscript[w, j]->Subscript[w, k],Subscript[y_, x]:>Subscript[y, k]}]]



