/** * @param c * construction */ public AlgoUsingTempCASalgo(Construction c) { super(c); c.addCASAlgo(this); }
/** * @param c * construction * @param addToConstructionList * whether we want this in construction list */ public AlgoUsingTempCASalgo(Construction c, boolean addToConstructionList) { super(c, addToConstructionList); c.addCASAlgo(this); }
/** * @param cons * construction * @param label * label for output * @param f * function * @param num * number */ public AlgoLimit(Construction cons, String label, GeoFunction f, GeoNumberValue num) { super(cons); cons.addCASAlgo(this); this.f = f; this.num = num; init(label); }
/** * @param cons * construction * @param f * function */ public AlgoCoefficients(Construction cons, GeoFunction f) { super(cons); cons.addCASAlgo(this); this.f = f; g = new GeoList(cons); setInputOutput(); // for AlgoElement compute(); }
/** * @param cons * construction * @param label * label for output * @param f * input function * @param pt * point through which the integral line should go */ public AlgoSolveODECas(Construction cons, String label, CasEvaluableFunction f, GeoPointND pt) { super(cons); cons.addCASAlgo(this); this.f = f; this.pt = pt; /** g is created in compute */ compute(); setInputOutput(); g.setLabel(label); }
/** * @param cons * construction * @param label * label for output * @param f * function */ public AlgoDegree(Construction cons, String label, GeoFunction f) { super(cons); cons.addCASAlgo(this); this.f = f; num = new GeoNumeric(cons); setInputOutput(); // for AlgoElement compute(); num.setLabel(label); }
/** * Creates CAS algo, doesn't set any input, output or label * * @param cons * construction * @param f * input function */ protected AlgoCasBase(Construction cons, CasEvaluableFunction f, Commands cmd, EvalInfo info) { super(cons); f.updateCASEvalMap(info.getCASMap()); this.f = f; this.cmd = cmd; cons.addCASAlgo(this); g = (CasEvaluableFunction) f.toGeoElement().copyInternal(cons); }
/** * @param cons * construction * @param label * label for output * @param f * function */ public AlgoFactors(Construction cons, String label, GeoFunction f) { super(cons); cons.addCASAlgo(this); this.f = f; g = new GeoList(cons); setInputOutput(); // for AlgoElement compute(); g.setLabel(label); }
/** * @param cons * construction * @param label * label for output * @param f * input function * @param info * eval info */ public AlgoSolveODECas(Construction cons, String label, CasEvaluableFunction f, EvalInfo info) { super(cons); this.nocas = !info.isUsingCAS(); cons.addCASAlgo(this); this.f = f; /** g is created in compute */ compute(); setInputOutput(); g.setLabel(label); }
/** * Proves the given statement and gives some details in a list. * * @param cons * The construction * @param root * Input statement * @param relationTool * true if output should be given for Relation Tool (which is * more readable) */ public AlgoProveDetails(Construction cons, GeoElement root, boolean relationTool) { super(cons); cons.addCASAlgo(this); this.root = root; this.relTool = relationTool; list = new GeoList(cons); setInputOutput(); // for AlgoElement // compute value of dependent number initialCompute(); compute(); }
/** * Proves the given statement and gives a yes/no answer (boolean) * * @param cons * The construction * @param label * Label for the output * @param root * Input statement */ public AlgoProve(Construction cons, String label, GeoElement root) { super(cons); cons.addCASAlgo(this); this.root = root; bool = new GeoBoolean(cons); setInputOutput(); // for AlgoElement // compute value of dependent number initialCompute(); compute(); bool.setLabel(label); }
/** * @param cons * construction * @param num * number * @param list * list of hints */ AlgoSurdText(Construction cons, GeoNumberValue num, GeoList list) { super(cons); if (list != null) { cons.addCASAlgo(this); } this.num = num; this.list = list; text = new GeoText(cons); text.setLaTeX(true, false); text.setIsTextCommand(true); // stop editing as text setInputOutput(); compute(); // debug // IntRelationFinder irf = new IntRelationFinder(3, new // double[]{1.41421356,1,0.70710678}, decFull, decLess); }
/** * common constructor * * @param c * Construction * @param labels * labels * @param c1 * curve 1 * @param c2 * curve 2 */ public AlgoIntersectCurveCurve(Construction c, String[] labels, GeoCurveCartesian c1, GeoCurveCartesian c2) { super(c); cons.addCASAlgo(this); outputPoints = createOutputPoints(); this.curve = c1; this.curve2 = c2; compute(); setInputOutput(); // for AlgoElement outputPoints.setLabelsMulti(labels); update(); }
/** * @param c * Construction * @param labels * labels * @param c1 * curve 1 * @param c2 * curve 2 * @param t1 * path parameter to start iteration from * @param t2 * path parameter to start iteration from */ public AlgoIntersectCurveCurve(Construction c, String[] labels, GeoCurveCartesian c1, GeoCurveCartesian c2, GeoNumberValue t1, GeoNumberValue t2) { super(c); cons.addCASAlgo(this); outputPoints = createOutputPoints(); this.curve = c1; this.curve2 = c2; this.t1 = t1; this.t2 = t2; numeric = true; compute(); setInputOutput(); // for AlgoElement outputPoints.setLabelsMulti(labels); update(); }