1 |
Willie Wong wrote: |
2 |
> On Mon, Nov 02, 2009 at 09:49:06PM +0100, Penguin Lover Erik squawked: |
3 |
> |
4 |
>> Is there some simple little program to solve assignment problems? |
5 |
>> Suppose that someone bought k meat (160), m fish (30) and n milk (15) |
6 |
>> for 700. So it should solve the equation k * 160 + m * 30 + n * 15 = |
7 |
>> 700. (A solution happens to be k = 4, m = 2, n = 0. An additional |
8 |
>> condition could be that he bought at most 6 items; k + m + n <= 6. That |
9 |
>> would eliminate solutions like k = 4, m = 0, n = 4.) |
10 |
>> |
11 |
> |
12 |
> An odd question deserves an odd answer: try Metafont. Donald Knuth |
13 |
> implemented in it a general linear equation solver / inequality |
14 |
> optimizer, though learning the syntax can be a little bit tricky. |
15 |
> |
16 |
> W |
17 |
> |
18 |
> |
19 |
|
20 |
And maybe it will be easier to just do his own homework instead of |
21 |
letting a computer do it for him. |
22 |
|
23 |
I would like to see how he cheats on test day tho. Think he can bring |
24 |
his puter with him? |
25 |
|
26 |
Dale |
27 |
|
28 |
:-) :-) |