Thanks for your important contribution! I want to solve the Schrödinger equation,but i have no idea how to implement it.Could you please give some advice about it.Thank you in advance!
$$ \begin{aligned} &i h_t+0.5 h_{x x}+|h|^2 h=0, \quad x \in[-5,5], \quad t \in[0, \pi / 2], \\ &h(0, x)=2 \operatorname{sech}(x) \\ &h(t,-5)=h(t, 5) \\ &h_x(t,-5)=h_x(t, 5) \end{aligned} $$
Thanks for your important contribution! I want to solve the Schrödinger equation,but i have no idea how to implement it.Could you please give some advice about it.Thank you in advance!
$$ \begin{aligned} &i h_t+0.5 h_{x x}+|h|^2 h=0, \quad x \in[-5,5], \quad t \in[0, \pi / 2], \\ &h(0, x)=2 \operatorname{sech}(x) \\ &h(t,-5)=h(t, 5) \\ &h_x(t,-5)=h_x(t, 5) \end{aligned} $$