Sha256: 7ed790829bc97574e751d53d1fdd9b2a206bcfe42a011e3ea1ea1a8099b8605e

Contents?: true

Size: 279 Bytes

Versions: 38

Compression:

Stored size: 279 Bytes

Contents

# encoding: utf-8

# Euler method.
# 
module YPetri::Core::Timed::Euler
  # Name of this method.
  # 
  def simulation_method
    :euler
  end

  # Computes Δ for the period of Δt.
  # 
  def delta Δt
    gradient * Δt
  end
  alias Δ delta
end # YPetri::Core::Timed::Euler

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
y_petri-2.1.33 lib/y_petri/core/timed/euler.rb
y_petri-2.1.31 lib/y_petri/core/timed/euler.rb
y_petri-2.1.30 lib/y_petri/core/timed/euler.rb
y_petri-2.1.26 lib/y_petri/core/timed/euler.rb
y_petri-2.1.25 lib/y_petri/core/timed/euler.rb
y_petri-2.1.24 lib/y_petri/core/timed/euler.rb
y_petri-2.1.22 lib/y_petri/core/timed/euler.rb
y_petri-2.1.21 lib/y_petri/core/timed/euler.rb
y_petri-2.1.20 lib/y_petri/core/timed/euler.rb
y_petri-2.1.18 lib/y_petri/core/timed/euler.rb
y_petri-2.1.17 lib/y_petri/core/timed/euler.rb
y_petri-2.1.16 lib/y_petri/core/timed/euler.rb
y_petri-2.1.12 lib/y_petri/core/timed/euler.rb
y_petri-2.1.11 lib/y_petri/core/timed/euler.rb
y_petri-2.1.10 lib/y_petri/core/timed/euler.rb
y_petri-2.1.9 lib/y_petri/core/timed/euler.rb
y_petri-2.1.7 lib/y_petri/core/timed/euler.rb
y_petri-2.1.6 lib/y_petri/core/timed/euler.rb