Sha256: e715ec68d64a7332e284cd7c5e6b9da6482748b5ac25b1f5d818552753b1a550
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
require 'symath/value' require 'symath/definition/operator' module SyMath class Definition::Hodge < Definition::Operator def initialize() super(:hodge) end def description() return 'hodge(f) - hodge star operator' end def evaluate_call(c) # Must normalize input, operation depends on factorized vectors return c.args[0].evaluate.normalize.hodge end def latex_format() return '\star %s' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
symath-0.1.1 | lib/symath/definition/hodge.rb |
symath-0.1.0 | lib/symath/definition/hodge.rb |