euler_step: A function to employ the Euler Method to solve an ODE.

View source: R/eulermethod.R

euler_stepR Documentation

A function to employ the Euler Method to solve an ODE.

Description

A function to employ the Euler Method to solve an ODE.

Usage

euler_step(func, dt, state)

Arguments

func

The derivative function.

dt

The time step for the Euler solver.

state

A list that defines the current state of the ODE, with one entry being a number, and the other being a tensor which describes the function state.

Value

A list that describes the updated state of the ODE.


tfNeuralODE documentation built on Oct. 17, 2023, 1:10 a.m.