Questions tagged [symja]

Symja is a pure Java Android library for symbolic mathematics.

More information can be found on the project page. You can follow recent development in the HipChat chat room.

14 questions
4
votes
1 answer

How does the library "Symja" need to be imported with Gradle in order to work with the Elasticsearch server module?

For a project I wanted to extend Elasticsearch and therefore need to use the package Symja. In the Github for Symja, there is a manual for the usage with Maven provided. Since the Elasticsearch repository is build with Gradle, I also need to use…
TiMauzi
  • 190
  • 1
  • 3
  • 16
2
votes
3 answers

How to solve multivariate equation systems programmatically?

I am trying to solve a system of multivariate equations, which are the result of some Java code. Neither the form, nor the number of variables is known before runtime. An example would be (I) (e-a*d*e-b*d*e+2*b*d*f+2*b*d*e*g)/(-1+a*d+b*d)+f ==…
2
votes
1 answer

How to solve inequalities with Symja?

Does anyone know how to solve one simple inequalities in Symja? I try like this: EvalUtilities solver = new EvalUtilities(); myExpresion = "Solve[Less[{2*x + 4},{10}],{x}]"; IExpr result = solver.evaluate(myExpresion); But this doesn't work. How…
1
vote
1 answer

Abs[x] not recognized in symja math parser

I have imported the .jar files, but DoubleEvaluator engine = new DoubleEvaluator(); engine.defineVariable("x", -1); engine.evaluate("Abs[x]"); throws me an error: org.matheclipse.parser.client.math.ArithmeticMathException:…
HHL
  • 87
  • 1
  • 9
0
votes
0 answers

Java Equation Evaluation

I have string equation like x +(23 + 78 ) = (32112 / 432) and inputting this equation I need to get the value of 'x' programmatically, also equation might be different in different times, but it will only have one variable, and I need this variable…
Sameesh
  • 315
  • 8
  • 18
0
votes
1 answer

App crashes when using Symja library for symbolic differentiation of a user input function. (Using Android Studio)

I have used Symja library for symbolic differentiation in Java. When I use it as a seperate java file, it executes normally and prints the output in the console. However, when I integrate it to my app in Android Studio, my app crashes. Here is the…
0
votes
1 answer

How to fix precision in Symja?

I'm using Symja. On http://matheclipse.org/, when I run the following formula: round(100*17347*0.047)*0.01 I get: 815.31 When running the following Java code ExprEvaluator exprEvaluator = new ExprEvaluator(false,100); double d =…
Stephan
  • 41,764
  • 65
  • 238
  • 329
0
votes
1 answer

Gradle build stuck while using symja library

Gradle build is stuck while running project. I have included symja-2015-08-09.jar file in libs folder. I have no other dependencies and no other external jar files. Can anyone please suggest any solution. dependencies { compile fileTree(dir: 'libs',…
Shahrukh Haider
  • 454
  • 2
  • 16
0
votes
1 answer

Android dependency Symja will not load in gradle

I'm using a symja android library and log4 in my android application. But for some reason every time I run the project I gets stuck on app:preDexDebug for about 20 minutes and then gives the error: * What went wrong: Execution failed for task…
Eklassen
  • 13
  • 1
  • 6
0
votes
1 answer

Gradle build slow after adding symja and log4j-1.2.11 to Android studio

I have tried this: Build, Execution, Deployment > Build Tool > Gradle and check Offline work checkbox in Global Gradle settings. however this does not seem to make any difference. Edit- I have just added --stacktrace to compiler option ` …
user5392939
0
votes
1 answer

symja: quadratic inequation and modulus

public static void solveInequalitiesEquationSymja(){ EvalUtilities util = new EvalUtilities(false, true); IExpr result = util.evaluate("x^2
Arik
  • 1
  • 2
0
votes
2 answers

How to evaluate string math expression in java

I want to evaluate a sting math expression in java. This string should contain functions (avg, max, min, ...) applied to vectors or simple numbers. I already use ScriptEngineManager with javasript engine but it just use numbers. I also see symja…
0
votes
0 answers

Symja Jar Algebra

i am using the symja-0.0.7a.jar for algebra expression evaluation. It is working in standalone java application. However when i run in server using Tomcat and Eclipse, I get the following error... workingExp: (4p * 2) + (8q *…
gonggong
  • 67
  • 1
  • 2
  • 17
0
votes
3 answers

Proper symja evaluation?

EDIT: I have found that even if I try and use the simplest of expressions, i.e. 1+1, in the evaluate() method, it can't do it. It is giving me runtime errors. I downloaded the symja_android_library.jar file, and added it to my classpath. My code is…
user2391236