- #1
SemM
Gold Member
- 195
- 13
Hi, I made the following command in MATLAB to test for the following:
\begin{equation}
\langle T\psi,\phi\rangle=\langle \psi, T\phi\rangle
\end{equation}
%Self-adjoint test
syms x
a = (diff(exp(-x^2)))*exp(-2*x^2)
b = (diff(exp(-2*x^2)))*exp(-x^2)
W = int(a, x)
P = int(b, x)
O=W-P
and it is tested on two square integrable functions. Can someone validate that this is OK?
\begin{equation}
\langle T\psi,\phi\rangle=\langle \psi, T\phi\rangle
\end{equation}
%Self-adjoint test
syms x
a = (diff(exp(-x^2)))*exp(-2*x^2)
b = (diff(exp(-2*x^2)))*exp(-x^2)
W = int(a, x)
P = int(b, x)
O=W-P
and it is tested on two square integrable functions. Can someone validate that this is OK?