Get only real results
Issue #153
closed
Hi,
I run the next code:
IExpr exp = util.evaluate("Solve(x^2+y^2==5,x)");
and gets the next results: {{x->-ISqrt(-5+y^2)},{x->ISqrt(-5+y^2)}}
I want to be able to get only the "real" solutions, and also get them in non complex format: x->Sqrt(y^2-5)
How can I do it?
Comments (4)
-
repo owner -
repo owner - marked as minor
- marked as enhancement
-
Is there a way to get the "real" results in "real" format:
f.e, in the example above: {{x->-ISqrt(-5+y^2)},{x->Sqrt(y^2-5)}}
and not: {{x->-ISqrt(-5+y^2)},{x->ISqrt(-5+y^2)}}
-
repo owner - changed status to closed
Reopened here: https://github.com/axkr/symja_android_library/issues/2
- Log in to comment
This requires ConditionalExpression's whihch are not implemented yet.
One solution is for example: