Sha256: f1063b3e449b6c60a25929b8a3728c2c5155c3dfdb26b95b346ecda3b514828b
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 Bytes
Contents
require 'symath/value' require 'symath/definition/operator' module SyMath class Definition::Grad < Definition::Operator def initialize() # Grad is defined as (dF)# super(:grad, args: [:f], exp: '#(xd(f))') end def description() return 'grad(f) - gradient of scalar field f' end def to_latex(args) if !args args = @args end return "\\nabla #{args[0].to_latex}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
symath-0.1.1 | lib/symath/definition/grad.rb |
symath-0.1.0 | lib/symath/definition/grad.rb |