Integrate x(x+1) doesn't work
Integrate(x(x+1),x) freeze the phone, while Integrate(x*(x+1),x). I already setted relaxedSyntax = true:
Comments (7)
-
repo owner -
repo owner This commit is also necessary:
https://bitbucket.org/axelclk/symja_android_library/commits/6b0b37438f939184bcf7440162ebbc03f1ef721a
-
With the build "symja-lib-2015-04-30.jar" the bug seems still not fixed
-
repo owner I get:
>>> Integrate(x(x+1),x) Integrate(x(x+1),x) >>> Integrate(x*(x+1),x) 1/3*x^3+1/2*x^2
in the online interface:
http://symjaweb.appspot.com/?ci=ta:Input:t:Integrate(x(x%2B1)%2Cx)
so you have to use the '*' operator or x(arg1) is interpreted as function x() with one argument arg1?
-
The simple code: EvalEngine e = new EvalEngine(true); System.out.println(e.evaluate("Integrate(x(x+1),x)"));
Gives me "Integrate(x(x+1),x)" as result...yes. I guess this is not the correct result, is it?
-
repo owner "Integrate(x(x+1),x)" cannot be further integrated, so it returns he input
See the difference in the full form of the 2 expressions:
>>> FullForm(x(x+1)) "x(Plus(1, x)) >>> FullForm(x*(x+1)) "Times(x, Plus(1, x))"
-
repo owner - changed status to resolved
- Log in to comment
x(arg1) is interpreted as function x() with one argument arg1:
See:
This commit should solve the problem:
https://bitbucket.org/axelclk/symja_android_library/commits/8bc39d3692efe42771bec299046d11ca3b27fdea