-
It's just a test for y''+y=0, y(0)=pi/4, y'(0)=0 Thanks !
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Beta Was this translation helpful? Give feedback.
-
@antelk thank you so much ! |
Beta Was this translation helpful? Give feedback.
-
@tareqath Thanks for providing the solution. @tareqath @antelk A better way to define the left BC explicitly could be
Then we can use both left and right boundary points for training, and DeepXDE knows that only the left boundary point is used for BCs, and the right boundary point is only used for ODE.
|
Beta Was this translation helpful? Give feedback.
-
Hello @lululxvi Okay so I tried this
whereas removing So yeah can you please point out the mistakes in this code, I've been scratching my head all over this, and thank you for the support ! |
Beta Was this translation helpful? Give feedback.
-
@tareqath In your code, you define the domain as [-3, 3], where x=0 is not a boundary. Hence,
Note: For the BCs, you used
|
Beta Was this translation helpful? Give feedback.
-
Hello @lululxvi `from future import absolute_import import numpy as np import deepxde as dde def main():
if name == "main": |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Well, few things. I am not the DeepXDE author of course, but I tried to run your code and notice few logical errors.
Code used: