How to solve equality with abs,like abs(x-1)=1 or abs(x^2-1)=0

Issue #114 resolved
zhoukang created an issue

like the title

Comments (3)

  1. Axel Kramer repo owner

    You can use the Solve() function.

    Note: currently this feature is not available in the online interface.

    See JUnit tests in commit 4b3fadb

            check("Solve(Abs(x-1) ==1,{x})", "{{x->0},{x->2}}");
            check("Solve(Abs(x^2-1) ==0,{x})", "{{x->-1},{x->1}}");
    
  2. Log in to comment