Class: Plurimath::Math::Function::F

Inherits:
UnaryFunction show all
Defined in:
lib/plurimath/math/function/f.rb

Instance Attribute Summary

Attributes inherited from UnaryFunction

#parameter_one

Instance Method Summary collapse

Methods inherited from UnaryFunction

#==, #class_name, #initialize, #to_html, #to_mathml_without_math_tag, #to_omml_without_math_tag

Constructor Details

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

Instance Method Details

#to_asciimathObject



9
10
11
# File 'lib/plurimath/math/function/f.rb', line 9

def to_asciimath
  "f#{parameter_one&.to_asciimath}"
end

#to_latexObject



13
14
15
16
# File 'lib/plurimath/math/function/f.rb', line 13

def to_latex
  first_value = latex_value if parameter_one
  "f#{first_value}"
end