Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Please use markdown formatting:
(x - 2y) * (x + 2y) = x * x + x * 2y - 2y * x - 2y * 2y = x * x + (x * 2y - 2y * x) - 2y * 2y = x * x - 4y * y
or KaTeX:
$ (x - 2y) * (x + 2y) = x * x + x * 2y - 2y * x - 2y * 2y = x^2 + (x * 2y - 2y * x) - 4y^2 = x^2 - 4y^2 $
to write mathematical formulas.
(x - 2y) * (x + 2y) = xx + x2y - 2yx - 2y2y = xx + (x2y - 2yx) - 2y2y = xx - 4yy
because a^2 - b^2 = (a+b)(a-b).
This is an algebraic identity - the difference of two squares
In your case, you can treat x =a, and b = 2y.
https://mste.illinois.edu/dildine/times/diff2sq.pdf
This comment is hidden because it contains spoiler information about the solution
hhhhh
It would be redundant: https://en.wikipedia.org/wiki/Product_(mathematics)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Please use a spoiler flag.
Your code has a bug, it's missing a
{
Compare the initial code to yours:Your code has a syntax error. Not a kata issue. Next time, please use a spoiler flag when you post code so that users who didn't solve the kata cannot see i (I added the flag for you this time).
.
Don't use ISSUE tag for these kind of questions, mods will tell you that issue is for issues with the kata not for small problems with your code/solution.
There is nothing wrong with the kata - you need to understand error message: the code that appears after "Expected: bla bla" is what you are returning, and the code after "to Deeply Equal: xyz" is the expected correct answer.
As you can see in the example you have pasted above, your answer is not correct - it's that simple really.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...