Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ ¹ ² ³ °
 

You are not logged in. Pages: 1 2
#1 20120501 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 20120501 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #3 20120501 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 Hey. #4 20120501 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 (20120501 19:52:08) #5 20120501 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #6 20120502 05:03:20
Re: working out which addends from a list will add up to a given value.
yes. #7 20120502 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #8 20120502 05:10:05
Re: working out which addends from a list will add up to a given value.Hi mpatt Last edited by anonimnystefy (20120502 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 “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #9 20120502 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #10 20120502 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 20120502 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #12 20120502 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 “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #13 20120502 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #14 20120502 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 “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #15 20120502 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #16 20120503 05:51:40
Re: working out which addends from a list will add up to a given value.Hi Chaps, #17 20120503 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #18 20120503 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #19 20120503 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 “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #20 20120503 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #21 20120503 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 “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #22 20120503 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #23 20120503 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 “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment #24 20120503 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. I have the result, but I do not yet know how to get it. All physicists, and a good many quite respectable mathematicians are contemptuous about proof. #25 20120503 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 “Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
Pages: 1 2
