Class: Plurimath::Math::Function::Limits
- Inherits:
-
TernaryFunction
- Object
- Core
- TernaryFunction
- Plurimath::Math::Function::Limits
- 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
Methods inherited from Core
#class_name, #empty_tag, #insert_t_tag, #nary_attr_value, #omml_parameter, #tag_name, #validate_function_formula
Constructor Details
This class inherits a constructor from Plurimath::Math::Function::TernaryFunction
Instance Method Details
#to_latex ⇒ Object
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_tag ⇒ Object
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 ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/plurimath/math/function/limits.rb', line 25 def to_omml_without_math_tag value_array = [] value_array << parameter_one.insert_t_tag if parameter_one value_array << parameter_two.insert_t_tag if parameter_two value_array << parameter_three.insert_t_tag if parameter_three value_array end |