Class: Plurimath::Math::Function::Inf

Inherits:
BinaryFunction show all
Defined in:
lib/plurimath/math/function/inf.rb

Instance Attribute Summary

Attributes inherited from BinaryFunction

#parameter_one, #parameter_two

Instance Method Summary collapse

Methods inherited from BinaryFunction

#==, #class_name, #initialize, #invert_unicode_symbols, #to_asciimath, #to_mathml_without_math_tag, #value_to_asciimath

Constructor Details

This class inherits a constructor from Plurimath::Math::Function::BinaryFunction

Instance Method Details

#to_latexObject



10
11
12
13
14
# File 'lib/plurimath/math/function/inf.rb', line 10

def to_latex
  first_value = "_{#{parameter_one.to_latex}}" if parameter_one
  second_value = "^{#{parameter_two.to_latex}}" if parameter_two
  "\\#{class_name}#{first_value}#{second_value}"
end