I checked this on my SageMath v9.6.beta5 on Ubuntu 20.04 LTS, and it checks 
out

[image: Screenshot from 2022-04-03 14-58-46.png]

On Sunday, April 3, 2022 at 2:57:35 PM UTC+5:30 Adarsh Kishore wrote:

> By the way, f.expand() is not wrong. The expression is identically equal 
> to 0 for all values of x, y and z.
>
> https://www.mathpapa.com/algebra-calculator.html?q=(x-y)%5E2*(y-z)*(z-x)%2B(y-z)%5E2*(z-x)*(x-y)%2B(z-x)%5E2*(x-y)*(y-z)
>
> [image: Screenshot from 2022-04-03 14-55-22.png]
>
> As for `f.factor()`, the given expression cannot be factorized further. So 
> the answer is correct. 
> On Sunday, April 3, 2022 at 2:53:47 PM UTC+5:30 Adarsh Kishore wrote:
>
>> Which version of Sage are you using? And on which platform?
>>
>> On Sunday, April 3, 2022 at 10:44:59 AM UTC+5:30 a.simpl...@gmail.com 
>> wrote:
>>
>>> The following code
>>>
>>> > var("z y z")
>>> > f = (x-y)^2*(y-z)*(z-x) + (y-z)^2*(z-x)*(x-y) + (z-x)^2*(x-y)*(y-z)
>>> > f.expand()
>>>
>>> outputs 0.
>>> But
>>> > f.factor()
>>> simply prints the original formula (x-y)^2...
>>>
>>> Maybe something is wrong?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/faafac0a-c6cb-4269-b175-4199d57953aan%40googlegroups.com.

Reply via email to