@Nonnull public Variable newInstance() { return new DoubleFactorial((Generic) null); } }
public Generic selfExpand() { return expressionValue(); }
public void toMathML(MathML element, Object data) { int exponent = data instanceof Integer ? (Integer) data : 1; if (exponent == 1) bodyToMathML(element); else { MathML e1 = element.element("msup"); bodyToMathML(e1); MathML e2 = element.element("mn"); e2.appendChild(element.text(String.valueOf(exponent))); e1.appendChild(e2); element.appendChild(e1); } }
@Nonnull @Override public Operator newInstance(@Nonnull Generic[] parameters) { return new DoubleFactorial(parameters); }