Someone already mentioned that putting the same 'factor' in twice can let you add/subtract or multiply/divide by the same value. A+E-E = A so E is non-essential (A*E)/E = A so E is non-essential but problematic if E == 0. You can make the rest of it fairly arcane as long as you use opposing operations through algebraic reduction. (2*(4*A + B + 5*C + 3*E)) / (6*E) > -----Original Message----- > From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > Of Buehler, Martin > Sent: Friday, March 10, 2006 11:09 AM > To: Microcontroller discussion list - Public. > Subject: RE: [OT] Integer Math with component elimination > > yes, you're right. it's for a quiz. > > ************************************************************************ > ****************************** > > > >-----Original Message----- > >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] > >On Behalf Of William Killian > >Sent: Friday, March 10, 2006 4:37 PM > >To: Microcontroller discussion list - Public. > >Subject: RE: [OT] Integer Math with component elimination > > > > > >Math class assignment? Some sort of quiz or contest? > > > >I have a feeling that I know several ways to do what you ask > >but I want to know why before I give an answer... > > > > > >> -----Original Message----- > >> From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On > >Behalf > >> Of Buehler, Martin > >> Sent: Friday, March 10, 2006 8:09 AM > >> To: Microcontroller discussion list - Public. > >> Subject: RE: [OT] Integer Math with component elimination > >> > >> the question is to find some formulas, which look as they would > >require > >> the value 'E', but do not really need it. > >> > >> > >*************************************************************** > >********* > >> ****************************** > >> > >> > >> >-----Original Message----- > >> >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On > >> >Behalf Of Olin Lathrop > >> >Sent: Friday, March 10, 2006 1:49 PM > >> >To: Microcontroller discussion list - Public. > >> >Subject: Re: [OT] Integer Math with component elimination > >> > > >> > > >> >Buehler, Martin wrote: > >> >> i'm looking for integer math formulas, dealing with a > >hand full of > >> >> components, but 1 of the components has no influence on > >the result: > >> >> > >> >> i.e. the values A, B, C, D and E are used within the > >> >formula, but only > >> >> the value of A, B, C and D has influence on the result, > >while the E > >> >> may be any value, without changing the result. > >> >> > >> >> examples like (A+B+E+C+D-E) are a bit too simple, as you can > >> >see at a > >> >> first glance that E is eliminated. > >> > > >> >So what's the question? > >> > > >> >****************************************************************** > >> >Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC > >> >consultant in 2004 program year. http://www.embedinc.com/products > >> >-- > >> >http://www.piclist.com PIC/SX FAQ & list archive > >> >View/change your membership options at > >> >http://mailman.mit.edu/mailman/listinfo/piclist > >> > > >> > >> -- > >> > >> View/change your membership options at > >> http://mailman.mit.edu/mailman/listinfo/piclist > > > > > >------------------------------------- Notice of > >Confidentiality > >---------------------------------------------------------- > >This email and any files transmitted with it are confidential > >and intended solely for the use of the > >individual or entity to whom they are addressed. If you have > >received this email in error please notify > >postmaster@vgt.net. This message contains confidential > >information and is intended only for the > >individual named. If you are not the named addressee you > >should not disseminate, distribute or > >copy this e-mail. Please notify the sender immediately by > >e-mail if you have received this e-mail by > >mistake and delete this e-mail from your system. If you are > >not the intended recipient you are notified > >that disclosing, copying, distributing or taking any action in > >reliance on the contents of this information > >is strictly prohibited. > > > >-- > >http://www.piclist.com PIC/SX FAQ & list archive > >View/change your membership options at > >http://mailman.mit.edu/mailman/listinfo/piclist > > > > -- > > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist ------------------------------------- Notice of Confidentiality ---------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@vgt.net. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist