Factor

Issue #20 wontfix
Former user created an issue

x^2-x+1/4 should factor this equation instead it gives 1/4(2*x-1)^2 how to get my expected output? my expected output is (x-1/2)^2

Comments (3)

  1. Axel Kramer repo owner

    First the expression will be converted to:

    1/4*(4*x^2-4*x+1)
    

    After that (4x^2-4x+1) will be factorized to

    (2*x-1)^2
    

    Which gives the correct result IMO.

  2. Log in to comment