Sha256: 6a7056eb03eb43f097a6c25416b69025d4860fb3c842c6bedfd34b4b00568a29

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

# encoding: utf-8

# Euler method.
# 
class YPetri::Core::Timed
  module 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 # Euler
end # YPetri::Core::Timed

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
y_petri-2.1.3 lib/y_petri/core/timed/euler.rb