|
| 28 Feb 2015 11:25 PM |
function Calculate(Base, Int) return (Base - Int) * (Base + Int) == (Base^2) - Int^2 end
print(Calculate(10, 7))
Works every time. xD
A maths formula I made up during English class. :) |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 28 Feb 2015 11:57 PM |
b-i*b+i = b^2+(-b*i+b*i)-i^2 = b^2-i^2
i don't see the point of this thread, if that doesnt work every time then something is very wrong.... |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 01:52 AM |
"(Base - Int) * (Base + Int) == (Base^2) - Int^2"
Yeah, the right side is just a simplified version of the left side... |
|
|
| Report Abuse |
|
|