Class: Plurimath::Math::Function::Limits

Inherits:
TernaryFunction show all
Defined in:
lib/plurimath/math/function/limits.rb

Instance Attribute Summary

Attributes inherited from TernaryFunction

#parameter_one, #parameter_three, #parameter_two

Instance Method Summary collapse

Methods inherited from TernaryFunction

#==, #class_name, #initialize, #to_asciimath, #to_html, #to_omml_without_math_tag

Constructor Details

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

Instance Method Details

#to_latexObject



18
19
20
21
22
23
# File 'lib/plurimath/math/function/limits.rb', line 18

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

#to_mathml_without_math_tagObject



9
10
11
12
13
14
15
16
# File 'lib/plurimath/math/function/limits.rb', line 9

def to_mathml_without_math_tag
  underover = Utility.ox_element("munderover")
  value_array = []
  value_array << parameter_one&.to_mathml_without_math_tag
  value_array << parameter_two&.to_mathml_without_math_tag
  value_array << parameter_three&.to_mathml_without_math_tag
  Utility.update_nodes(underover, value_array)
end