public string Isolate(string transformMe, string isolateMe, int maxRepetitions, int maxPopulationSize, List <Operator> operators) { List <Goal> goals = TransformGoal.StandardFormTransformGoals(operators); goals.Add(new IsolateGoal(isolateMe, false)); goals.Add(new LengthGoal()); List <Transform> transforms = TransformData.AllAlgebraTransformsAsTransforms(operators); UseSubstitutions = false; return(Solve(transformMe, goals, transforms, maxRepetitions, maxPopulationSize, operators)); }
public string PartialDerivative(string transformMe, int maxRepetitions, int maxPopulationSize, List <Operator> operators) { List <Goal> goals = TransformGoal.StandardFormTransformGoals(operators); goals.Add(new TransformGoal(-50, "p(x)~0", operators)); List <Transform> transforms = TransformData.AllAlgebraTransformsAsTransforms(operators); transforms.AddRange(TransformData.PartialDerivativeTransformsAsTransforms(operators)); UseSubstitutions = false; return(Solve(transformMe, goals, transforms, maxRepetitions, maxPopulationSize, operators)); }
public string Simplify(string simplifyMe, int maxRepetitions, int maxPopulationSize, List <Operator> operators) { List <Goal> goals = TransformGoal.StandardFormTransformGoals(operators); goals.Add(new LengthGoal()); goals.Add(new PreferOneVariableGoal()); List <Transform> transforms = TransformData.AllAlgebraTransformsAsTransforms(operators); UseSubstitutions = false; return(Solve(simplifyMe, goals, transforms, maxRepetitions, maxPopulationSize, operators)); }