Sha256: 9af072573a1a61e9e69baf9402d4ea08388af00c9178e388cbb17c95ad00a94d
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Tr < UnaryFunction def to_asciimath "[#{parameter_one.map(&:to_asciimath).join(',')}]" end def to_mathml_without_math_tag "<mtr>#{parameter_one.map(&:to_mathml_without_math_tag).join}</mtr>" end def to_latex parameter_one.reject do |td| td if td.is_a?(Symbol) && td.value == "|" end.map(&:to_latex).join("&") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.2.0 | lib/plurimath/math/function/tr.rb |