lib/plurimath/math/function/norm.rb in plurimath-0.2.0 vs lib/plurimath/math/function/norm.rb in plurimath-0.2.1
- old
+ new
@@ -5,10 +5,11 @@
module Plurimath
module Math
module Function
class Norm < UnaryFunction
def to_mathml_without_math_tag
- "<mo>∥</mo>#{parameter_one.to_mathml_without_math_tag}<mo>∥</mo>"
+ first_value = parameter_one&.to_mathml_without_math_tag
+ "<mo>∥</mo>#{first_value}<mo>∥</mo>"
end
end
end
end
end