Bear Bibeault wrote:If it is really a math question and not a trick question, then there is not enough information to solve for a, b and c.
For three unknowns, you need three distinct equations to solve the problem.
A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and (the first power of) a single variable.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
fred rosenberger wrote:Why is abc = 1536 non-linear? I assume it means a * b * c = 1536.
- Marimuthu Madasamy
Matthew Brown wrote:
fred rosenberger wrote:Why is abc = 1536 non-linear? I assume it means a * b * c = 1536.
Because you're multiplying variables together. It doesn't satisfy the "single variable" part of that definition.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Marimuthu Madasamy wrote:Taking the brute force approach and to have some fun with Haskell:
which returned [(8,12,16),(8,16,12),(12,16,8)]
- Marimuthu Madasamy
Mike Simmons wrote:Not really. It's a program in the Haskell programming language. Personally I was learning about it as part of reading Seven Languages in Seven Weeks, which we had as a reading group at work. (By the way, if you do this: I recommend taking more than seven weeks. Maybe fourteen weeks. You can learn a lot if you work through all the problems, but it can take a lot of time.) I don't know if I will ever program in Haskell professionally, but it's a really good way to stretch your brain.
Don't get me started about those stupid light bulbs. |