結果 : implicit euler method python code