<gh_stars>10-100
# Fourier SPINN
# Solve differential equation u''(x) + 1 = 0 on (0,1)
# with Dirichlet boundar conditions u(0) = u(1) = 0.

import numpy as np

from common import tensor
from spinn1d import Plotter1D, App1D
from fourier1d_base import Fourier1D, FourierPlotter1D
from ode3 import ODESimple

if __name__ == '__main__':
    app = App1D(
        pde_cls=ODESimple, 
        nn_cls=Fourier1D,
        plotter_cls=FourierPlotter1D
    )
    app.run(modes=50, samples=50, n_train=5000, lr=5e-3, tol=1e-2)
# Fourier SPINN
# Solve differential equation u''(x) + 1 = 0 on (0,1)
# with Dirichlet boundar conditions u(0) = u(1) = 0.

import numpy as np

from common import tensor
from spinn1d import Plotter1D, App1D
from fourier1d_base import Fourier1D, FourierPlotter1D
from ode3 import ODESimple

if __name__ == '__main__':
    app = App1D(
        pde_cls=ODESimple, 
        nn_cls=Fourier1D,
        plotter_cls=FourierPlotter1D
    )
    app.run(modes=50, samples=50, n_train=5000, lr=5e-3, tol=1e-2)
# Fourier SPINN # Solve differential equation u''(x) + 1 = 0 on (0,1) # with Dirichlet boundar conditions u(0) = u(1) = 0.