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.2.4 lib/y_petri/core/timed/euler.rb
y_petri-2.2.3 lib/y_petri/core/timed/euler.rb
y_petri-2.2.2 lib/y_petri/core/timed/euler.rb
y_petri-2.2.1 lib/y_petri/core/timed/euler.rb
y_petri-2.2.0 lib/y_petri/core/timed/euler.rb
y_petri-2.1.51 lib/y_petri/core/timed/euler.rb
y_petri-2.1.50 lib/y_petri/core/timed/euler.rb
y_petri-2.1.49 lib/y_petri/core/timed/euler.rb
y_petri-2.1.48 lib/y_petri/core/timed/euler.rb
y_petri-2.1.47 lib/y_petri/core/timed/euler.rb
y_petri-2.1.46 lib/y_petri/core/timed/euler.rb
y_petri-2.1.45 lib/y_petri/core/timed/euler.rb
y_petri-2.1.44 lib/y_petri/core/timed/euler.rb
y_petri-2.1.42 lib/y_petri/core/timed/euler.rb
y_petri-2.1.40 lib/y_petri/core/timed/euler.rb
y_petri-2.1.39 lib/y_petri/core/timed/euler.rb
y_petri-2.1.37 lib/y_petri/core/timed/euler.rb
y_petri-2.1.36 lib/y_petri/core/timed/euler.rb
y_petri-2.1.35 lib/y_petri/core/timed/euler.rb
y_petri-2.1.34 lib/y_petri/core/timed/euler.rb