n-th root added

This commit is contained in:
Sergey Solovyev 2012-11-15 22:02:01 +04:00
parent 39b45c509e
commit ed9a50ed45
2 changed files with 3 additions and 3 deletions

View File

@ -49,6 +49,9 @@ public class CalculatorFunctionsMathRegistry extends AbstractCalculatorMathRegis
super.load();
add(new CustomFunction.Builder(true, "log", Arrays.asList("base", "x"), "ln(x)/ln(base)"));
add(new CustomFunction.Builder(true, "√3", Arrays.asList("x"), "x^(1/3)"));
add(new CustomFunction.Builder(true, "√4", Arrays.asList("x"), "x^(1/4)"));
add(new CustomFunction.Builder(true, "√n", Arrays.asList("x", "n"), "x^(1/n)"));
}
public static void saveFunction(@NotNull CalculatorMathRegistry<Function> registry,

View File

@ -8,9 +8,6 @@ import org.solovyev.math.units.UnitImpl;
import org.solovyev.math.units.UnitType;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* User: Solovyev_S