Class: Plurimath::Math::Function::PowerBase
- Inherits:
 - 
      TernaryFunction
      
        
- Object
 - TernaryFunction
 - Plurimath::Math::Function::PowerBase
 
 
- Defined in:
 - lib/plurimath/math/function/power_base.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
Constructor Details
This class inherits a constructor from Plurimath::Math::Function::TernaryFunction
Instance Method Details
#to_latex ⇒ Object
      16 17 18 19 20 21 22  | 
    
      # File 'lib/plurimath/math/function/power_base.rb', line 16 def to_latex first_value = parameter_one.to_latex if parameter_one second_value = parameter_two.to_latex if parameter_two third_value = parameter_three.to_latex if parameter_three first_value = "{#{first_value}}" if parameter_one.is_a?(Math::Formula) "#{first_value}_{#{second_value}}^{#{third_value}}" end  | 
  
#to_mathml_without_math_tag ⇒ Object
      9 10 11 12 13 14  | 
    
      # File 'lib/plurimath/math/function/power_base.rb', line 9 def to_mathml_without_math_tag first_value = parameter_one.to_mathml_without_math_tag if parameter_one second_value = parameter_two.to_mathml_without_math_tag if parameter_two third_value = parameter_three.to_mathml_without_math_tag if parameter_three "<msubsup>#{first_value}#{second_value}#{third_value}</msubsup>" end  |