Sha256: 2d96d63ea732a06bd4048e067312b47a2e57a984369199211c9c5d13b92b8bfe
Contents?: true
Size: 1.26 KB
Versions: 5
Compression:
Stored size: 1.26 KB
Contents
# frozen_string_literal: true require_relative "binary_function" module Plurimath module Math module Function class Overset < BinaryFunction def to_mathml_without_math_tag first_value = parameter_one&.to_mathml_without_math_tag second_value = parameter_two&.to_mathml_without_math_tag over_tag = Utility.ox_element("mover") Utility.update_nodes( over_tag, [ second_value, first_value, ], ) end def to_omml_without_math_tag(display_style) if !display_style power = Power.new(parameter_one, parameter_two) return power.to_omml_without_math_tag(display_style) end limupp = Utility.ox_element("limUpp", namespace: "m") limupppr = Utility.ox_element("limUppPr", namespace: "m") limupppr << Utility.pr_element("ctrl", true, namespace: "m") Utility.update_nodes( limupp, [ limupppr, omml_parameter(parameter_one, display_style, tag_name: "e"), omml_parameter(parameter_two, display_style, tag_name: "lim"), ], ) [limupp] end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems