Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
| |
|
|
You are not logged in. Pages: 1 2
#1 2012-05-01 08:57:43
working out which addends from a list will add up to a given value.I have a real world problem, and I'm hoping there will be an elegant mathematical solution to this. #2 2012-05-01 09:00:10
Re: working out which addends from a list will add up to a given value.Hi; In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #3 2012-05-01 13:02:28
Re: working out which addends from a list will add up to a given value.i do need too see the list to total things woosh! woosh! bye as I go to Kanto. #4 2012-05-01 19:51:44
Re: working out which addends from a list will add up to a given value.The list will change depending on when I run it, so I was hoping for an 'any case' method. Last edited by mpatt (2012-05-01 19:52:08) #5 2012-05-01 19:54:46
Re: working out which addends from a list will add up to a given value.You must keep the ordering given too? In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #6 2012-05-02 05:03:20
Re: working out which addends from a list will add up to a given value.
yes. #7 2012-05-02 05:07:47
Re: working out which addends from a list will add up to a given value.Hi mpatt; In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #8 2012-05-02 05:10:05
Re: working out which addends from a list will add up to a given value.Hi mpatt Last edited by anonimnystefy (2012-05-02 06:40:07) The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “A secret's worth depends on the people from whom it must be kept.” ― Carlos Ruiz Zafón #9 2012-05-02 06:38:10
Re: working out which addends from a list will add up to a given value.Hi mpatt; In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #10 2012-05-02 09:03:24
Re: working out which addends from a list will add up to a given value.
A little, if there's an algorithm which will do it I'll have a go, thanks. #11 2012-05-02 09:06:03
Re: working out which addends from a list will add up to a given value.The simplest approach is to try all singles and then all doubles and then all triples etc. What do you program in? In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #12 2012-05-02 09:11:47
Re: working out which addends from a list will add up to a given value.Hi bobbym The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “A secret's worth depends on the people from whom it must be kept.” ― Carlos Ruiz Zafón #13 2012-05-02 09:16:30
Re: working out which addends from a list will add up to a given value.
I assume they are consecutive. He does not say they are not. In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #14 2012-05-02 09:20:55
Re: working out which addends from a list will add up to a given value.Not stating it doesn't give you the right to assume that. The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “A secret's worth depends on the people from whom it must be kept.” ― Carlos Ruiz Zafón #15 2012-05-02 17:10:40
Re: working out which addends from a list will add up to a given value.The algorithm can be adjusted to handle that using recursion. I could write it in M as soon as he stipulates the rules. Trouble is he will need to a better than beginner to program it. In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #16 2012-05-03 05:51:40
Re: working out which addends from a list will add up to a given value.Hi Chaps, #17 2012-05-03 05:54:03
Re: working out which addends from a list will add up to a given value.Recursion is the way to go. You said they are not all integers too? In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #18 2012-05-03 07:39:03
Re: working out which addends from a list will add up to a given value.Let's take the list you have in post #6. Let's do some mathematics on it. Whamo! Done! In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #19 2012-05-03 07:41:01
Re: working out which addends from a list will add up to a given value.Hi bobbym The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “A secret's worth depends on the people from whom it must be kept.” ― Carlos Ruiz Zafón #20 2012-05-03 07:42:11
Re: working out which addends from a list will add up to a given value.That is what I used! In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #21 2012-05-03 07:45:44
Re: working out which addends from a list will add up to a given value.Cool! So there is a mathematical way to do it without the use of procesural programming! The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “A secret's worth depends on the people from whom it must be kept.” ― Carlos Ruiz Zafón #22 2012-05-03 07:47:37
Re: working out which addends from a list will add up to a given value.Yes. But it will require a computer to set it up and to solve it. But it will be fast. In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #23 2012-05-03 07:50:50
Re: working out which addends from a list will add up to a given value.So we will need more than just computer maths? We will have to use loops?!? The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “A secret's worth depends on the people from whom it must be kept.” ― Carlos Ruiz Zafón #24 2012-05-03 07:52:52
Re: working out which addends from a list will add up to a given value.It could be done with loops and procedural code but it will be clumsy and slow. C++ provides a better solution. But the functional paradigm is the real answer. In mathematics, you don't understand things. You just get used to them. 90% of mathematicians do not understand 90% of currently published mathematics. I am willing to wager that over 75% of the new words that appeared were nothing more than spelling errors that caught on. #25 2012-05-03 07:53:40
Re: working out which addends from a list will add up to a given value.Functional paradigm? The limit operator is just an excuse for doing something you know you can't. “It's the subject that nobody knows anything about that we can all talk about!” ― Richard Feynman “A secret's worth depends on the people from whom it must be kept.” ― Carlos Ruiz Zafón
Pages: 1 2
|