MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Solve fails with this simple inequality problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115748] Re: Solve fails with this simple inequality problem
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 20 Jan 2011 06:26:14 -0500 (EST)

Reduce[Meter == Floor[a*Sqrt[19] + 7] && 
  Meter < 6 && (a == -1 || a == 1), {a, Meter}]

a == -1 && Meter == 2


Bob Hanlon

---- michael partensky <partensky at gmail.com> wrote: 

=============
Ken, Sqrt  returns by definition the *positive* root.
Your question would have been legit  (with its syntax properly fixed) for
the negative root, but this must be handled by adding minus (-Sqrt[19])
explicitly.

Can anyone help to reformulate the problem to handle both signs elegantly?
Thanks
Michael Partenskii



On Sun, Jan 16, 2011 at 5:55 AM, KenR <ramsey2879 at msn.com> wrote:

> Solve[Meter = Floor[Sqrt[19]+7] && Meter < 6, Meter] gives a null "{}"
> Any workarounds?
>
>

--

Bob Hanlon



  • Prev by Date: Re: CUDADot bug?
  • Next by Date: How to edit/change Wolfram examples?
  • Previous by thread: Re: Solve fails with this simple inequality problem
  • Next by thread: Re: Solve fails with this simple inequality problem