Y
Hacker News
new
|
ask
|
show
|
jobs
by
quietbritishjim
2649 days ago
I don't know any Lisp, but I would decode
(= (* x (+ y z)) (+ (* x z) (* y z)))
As
x*(y + z) = x*z + y*z
e.g. (+ y z) means you add y and z with highest priority.
1 comments
grenoire
2649 days ago
Which is incorrect, they aren't equal.
link
Retra
2649 days ago
That is probably not a statement of equality, but a boolean test for it.
link
nanaya
2649 days ago
Well, technically it solves to x = z when y <> 0 and any x, z when y = 0 though I'm not sure if that's the original intention.
link