new plotter

This commit is contained in:
Sergey Solovyev
2013-01-06 00:59:35 +04:00
parent 2c0803da74
commit b0608b8204
17 changed files with 350 additions and 115 deletions

View File

@@ -162,6 +162,9 @@ public enum CalculatorEventType {
//org.solovyev.android.calculator.plot.PlotInput
plot_graph,
plot_graph_3d,
//String
show_evaluation_error;

View File

@@ -44,9 +44,9 @@ public final class CalculatorUtils {
public static boolean isPlotPossible(@NotNull Generic expression, @NotNull JsclOperation operation) {
boolean result = false;
if (operation == JsclOperation.simplify) {
if (operation == JsclOperation.simplify || operation == JsclOperation.numeric) {
int size = getNotSystemConstants(expression).size();
if (size == 1 || size == 2) {
if (size == 0 || size == 1 || size == 2) {
result = true;
}
}