Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Floor[] Not An Integer?

  • To: mathgroup at
  • Subject: [mg56529] Re: Floor[] Not An Integer?
  • From: Peter Pein <petsie at>
  • Date: Thu, 28 Apr 2005 02:40:20 -0400 (EDT)
  • References: <d4msf0$233$>
  • Sender: owner-wri-mathgroup at

Scott Guthery wrote:
> I'm trying to use some of the NumericalMath approximations such as
> MiniMaxApproximation and RationalInterpolation with a function that
> includes array references of the form Array[[Floor[x]]].  The function
> plots and evaluates just fine but the NumericalMath functions are
> reporting the error:
> "Part::pspec: Part specification Floor[x] is neither an integer nor a
> list of integers."
> whereas the documentation states that Floor[x] IS an integer.
> What am I missing?
> Thanks for any insight.
> Cheers, Scott
Hi Scott,
which version do you use?
I've got no problem with the extraction of list elements...

funcArray={Cos,Cos[2Cos[#]#]&}; (* nonsense *)

 (* no warning here *)
 (* no warning here *)
{x -> 2.186558801514759}

Peter Pein

  • Prev by Date: Re: Converting a mapping into a well-defined function
  • Next by Date: Re: Re: odd mathematica blindspot
  • Previous by thread: Re: Floor[] Not An Integer?
  • Next by thread: Re: Floor[] Not An Integer?