All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.matheclipse.core.form.tex.reflection.D Maven / Gradle / Ivy

package org.matheclipse.core.form.tex.reflection;

import org.matheclipse.core.form.tex.AbstractConverter;
import org.matheclipse.core.interfaces.IAST;

public class D extends AbstractConverter {

	public D() {
	}

	/**
	 * Converts a given function into the corresponding MathML output
	 * 
	 *@param buf
	 *          StringBuffer for MathML output
	 *@param f
	 *          The math function which should be converted to MathML
	 */
	public boolean convert(final StringBuffer buf, final IAST f, final int precedence) {
		if (f.size() == 3) {

			buf.append("\\frac{d}{{d");
			fFactory.convert(buf, f.get(2), 0);
			buf.append("}}");
			fFactory.convert(buf, f.get(1), 0);

			return true;
		}
		return false;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy