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

#==, #any_value_exist?, #initialize, #to_asciimath, #to_html

Methods inherited from Core

#class_name, #empty_tag, #extract_class_from_text, #extractable?, #font_style_t_tag, #insert_t_tag, #nary_attr_value, #omml_parameter, #omml_tag_name, #r_element, #tag_name, #validate_function_formula

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

#to_omml_without_math_tag(display_style) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/plurimath/math/function/limits.rb', line 25

def to_omml_without_math_tag(display_style)
  value_array = []
  value_array << parameter_one.insert_t_tag(display_style) if parameter_one
  value_array << parameter_two.insert_t_tag(display_style) if parameter_two
  value_array << parameter_three.insert_t_tag(display_style) if parameter_three
  value_array
end