cc.redberry.core.solver
Class ExternalSolver
- java.lang.Object
-
- cc.redberry.core.solver.ExternalSolver
-
public class ExternalSolver extends java.lang.ObjectTools for solving a symbolic system with external systems (Maple or Mathematica).- Since:
- 1.1.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interfaceExternalSolver.ExternalScriptCreatorstatic classExternalSolver.MapleScriptCreatorstatic classExternalSolver.MathematicaScriptCreator
-
Constructor Summary
Constructors Constructor and Description ExternalSolver()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Expression[][]solveSystemWithExternalProgram(ExternalSolver.ExternalScriptCreator scriptCreator, ReducedSystem reducedSystem, boolean keepFreeParameters, java.lang.String programBinDir, java.lang.String path)Solves a system of symbolic equations using external program.static Expression[][]solveSystemWithMaple(ReducedSystem reducedSystem, boolean keepFreeParameters, java.lang.String mapleBinDir, java.lang.String path)Solves a system of symbolic equations using Maplesoft Maple installation.static Expression[][]solveSystemWithMathematica(ReducedSystem reducedSystem, boolean keepFreeParameters, java.lang.String mathematicaBinDir, java.lang.String path)Solves a system of symbolic equations using Wolfram Mathematica installation.
-
-
-
Method Detail
-
solveSystemWithMaple
public static Expression[][] solveSystemWithMaple(ReducedSystem reducedSystem, boolean keepFreeParameters, java.lang.String mapleBinDir, java.lang.String path) throws java.io.IOException, java.lang.InterruptedException
Solves a system of symbolic equations using Maplesoft Maple installation.- Parameters:
reducedSystem- a system of symbolic equationskeepFreeParameters- iftruethen each solutions family will be in the most general form, otherwise some particular solution will be taken for each family of solutionsmapleBinDir- path to Maple bin directorypath- path to temporary directory- Returns:
- solution of
reducedSystem - Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
solveSystemWithMathematica
public static Expression[][] solveSystemWithMathematica(ReducedSystem reducedSystem, boolean keepFreeParameters, java.lang.String mathematicaBinDir, java.lang.String path) throws java.io.IOException, java.lang.InterruptedException
Solves a system of symbolic equations using Wolfram Mathematica installation.- Parameters:
reducedSystem- a system of symbolic equationskeepFreeParameters- iftruethen each solutions family will be in the most general form, otherwise some particular solution will be taken for each family of solutionsmathematicaBinDir- path to directory with Mathematica executablespath- path to temporary directory- Returns:
- solution of
reducedSystem - Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
solveSystemWithExternalProgram
public static Expression[][] solveSystemWithExternalProgram(ExternalSolver.ExternalScriptCreator scriptCreator, ReducedSystem reducedSystem, boolean keepFreeParameters, java.lang.String programBinDir, java.lang.String path) throws java.io.IOException, java.lang.InterruptedException
Solves a system of symbolic equations using external program.- Parameters:
scriptCreator- external enginereducedSystem- a system of symbolic equationskeepFreeParameters- iftruethen each solutions family will be in the most general form, otherwise some particular solution will be taken for each family of solutionspath- path to temporary directory- Returns:
- solution of
reducedSystem - Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG