Many Interacting Worlds - Hall, et al.
fricas
P:=operator('P);
fricas
Q:=operator('Q);
fricas
g:=operator('g);
fricas
U:=operator('U);
fricas
r:=operator('r);
fricas
ℏ:=h;
Type: Variable(h)
Hall equations 15,19,20
fricas
eq15:= r(q) = -D(U(q),q)
Type: Equation(Expression(Integer))
fricas
eq19:= U(q) = 1/(2*m)*g(q)^2
Type: Equation(Expression(Integer))
fricas
eq20:= g(q) = ℏ/2 * 1/P(q)*D(P(q),q)
Type: Equation(Expression(Integer))
fricas
eval(eq19,eq20)
Type: Equation(Expression(Integer))
fricas
RHall:=eval(eq15,D(lhs %,q)=D(rhs %,q))
Type: Equation(Expression(Integer))
Hall equations 6, 7, A3
fricas
eq6:= r(q) = -D(Q(q),q)
Type: Equation(Expression(Integer))
fricas
eq7:= Q(q) = 1/sqrt(P(q))*-ℏ^2/2/m*D(sqrt(P(q)),[q,q])
Type: Equation(Expression(Integer))
fricas
Rforce:=eval(eq6,D(lhs eq7,q)=D(rhs eq7,q))
Type: Equation(Expression(Integer))
Gaussian
fricas
PdfNorm(x)==1/2*sqrt(2)*exp(-1/2*x^2)/sqrt(%pi)
Type: Void
fricas
eval(RHall,[P(q)=PdfNorm(q), _
D(P(q),q)=D(PdfNorm(q),q), _
D(P(q),[q,q])=D(PdfNorm(q),[q,q])])
fricas
Compiling function PdfNorm with type Variable(q) -> Expression(
Integer)
Type: Equation(Expression(Integer))
fricas
eval(Rforce, [P(q)=PdfNorm(q), _
D(P(q),q)=D(PdfNorm(q),q), _
D(P(q),[q,q])=D(PdfNorm(q),[q,q]), _
D(P(q),[q,q,q])=D(PdfNorm(q),[q,q,q])])
Type: Equation(Expression(Integer))
Cauchy
fricas
PdfCauchy(x)==1/%pi/(1+x^2)
Type: Void
fricas
eval(RHall,[P(q)=PdfCauchy(q), _
D(P(q),q)=D(PdfCauchy(q),q), _
D(P(q),[q,q])=D(PdfCauchy(q),[q,q])])
fricas
Compiling function PdfCauchy with type Variable(q) -> Expression(
Integer)
Type: Equation(Expression(Integer))
fricas
eval(Rforce,[P(q)=PdfCauchy(q), _
D(P(q),q)=D(PdfCauchy(q),q), _
D(P(q),[q,q])=D(PdfCauchy(q),[q,q]), _
D(P(q),[q,q,q])=D(PdfCauchy(q),[q,q,q])])
Type: Equation(Expression(Integer))
fricas
J(i,j)==matrix([[x[i,j]-x[i-1,j],y[i,j]-y[i-1,j]],[x[i,j]-x[j,j-1],y[i,j]-y[j,j-1]]])
Type: Void
fricas
J(i,j)
fricas
Compiling function J with type (Variable(i),Variable(j)) -> Matrix(
Polynomial(Integer))
Type: Matrix(Polynomial(Integer))
fricas
determinant(J(i,j))
Type: Polynomial(Integer)
fricas
K(i,j)==inverse(J(i,j))
Type: Void
fricas
K(i,j)
fricas
Compiling function K with type (Variable(i),Variable(j)) -> Union(
Matrix(Fraction(Polynomial(Integer))),"failed")
Type: Union(Matrix(Fraction(Polynomial(Integer))),...)
Poirier
1-D
fricas
x := operator('x)
Compiled code for J has been cleared.
Compiled code for K has been cleared.
fricas
C:List Symbol := [subscript('x,[0])]
Type: List(Symbol)
fricas
d := #C
fricas
J := matrix [[D(x(C(1),t),C(1))]]
Function definition for J is being overwritten.
Type: Matrix(Expression(Integer))
fricas
K := inverse J
Function definition for K is being overwritten.
Type: Union(Matrix(Expression(Integer)),...)
fricas
[reduce(+,[reduce(+,[reduce(+,[reduce(+,[ (1/4)*D( K(k,i)*K(m,j)*D( D( K(l,j),C(k) ),C(l) ),C(m) ) for m in 1..d]) for k in 1..d]) for j in 1..d]) for l in 1..d]) for i in 1..d]
Type: List(Expression(Integer))
2-D
fricas
x := operator('x)
fricas
y := operator('y)
fricas
C:List Symbol := [subscript('x,[0]),subscript('y,[0])]
Type: List(Symbol)
fricas
d := #C
fricas
J := matrix [[D(x(C(1),C(2),t),C(1)), D(x(C(1),C(2),t),C(2))],
[D(y(C(1),C(2),t),C(1)), D(y(C(1),C(2),t),C(2))]]
Type: Matrix(Expression(Integer))
fricas
K := inverse J
Type: Union(Matrix(Expression(Integer)),...)
fricas
Req18:=[reduce(+,[reduce(+,[reduce(+,[reduce(+,[
(1/4)*D( K(k,i)*K(m,j)*D( D( K(l,j),C(k) ),C(l) ),C(m) )
for m in 1..d]) for k in 1..d]) for j in 1..d]) for l in 1..d]) for i in 1..d];
Type: List(Expression(Integer))
fricas
#Req18
fricas
kernels Req18.1
Type: List(Kernel(Expression(Integer)))