Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: making non integer values sum to n
Date: Fri, 21 Nov 2008 00:19:02 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 25
Message-ID: <gg4upm$a0f$1@fred.mathworks.com>
References: <17829314.1227222052740.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227226742 10255 172.30.248.38 (21 Nov 2008 00:19:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 21 Nov 2008 00:19:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:502200


Tim Smith <imaccormick@gmail.com> wrote in message <17829314.1227222052740.JavaMail.jakarta@nitrogen.mathforum.org>...
> Sorry for previous post it was slightly incorrect:
> Can anyone help me with this problem
> 
> where n is divisible by 4 and n,a,b are any real integers such that a+b<(n/2)
> 
> i need to create a statement such that:
> 
> integer((n-a-b)/4) + a + integer((n-a-b)/2) + b + integer((n-a-b)/2) = n
> 
> can anyone help?


What do you mean by "create a statement"?

What are you asking for? Do you need to find
values of a and b such that this expression
essentially evaluates as true? If so, then why
not say that?

Do you need to find a single such set of numbers?
All sets of numbers? Something else? Explain your
problem.

John