com.accelad.math.nilgiri.autodiff.AbstractBinaryFunction Maven / Gradle / Ivy
The newest version!
package com.accelad.math.nilgiri.autodiff;
import com.accelad.math.nilgiri.Field;
public abstract class AbstractBinaryFunction> extends DifferentialFunction {
private DifferentialFunction m_x1;
private DifferentialFunction m_x2;
public AbstractBinaryFunction(DifferentialFunction i_v1, DifferentialFunction i_v2) {
if (i_v1 != null && i_v2 != null) {
m_x1 = i_v1;
m_x2 = i_v2;
} else {
throw new IllegalArgumentException("Input not null variables.");
}
}
public DifferentialFunction larg() {
return m_x1;
}
public DifferentialFunction rarg() {
return m_x2;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy