Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

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

Search the Archive

Re: IntegerPart

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130310] Re: IntegerPart
  • From: debguy <johnandsara2 at cox.net>
  • Date: Tue, 2 Apr 2013 03:27:28 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <kjb430$8jc$1@smc.vnet.net>

I see it doing what you asked.  I see a square wave style graph.

What is it you want as a result?  A square wave of between 0 and 1
using FractionalPart ??

I do see your using IntegerPart on x.  That is likely unintended.
Plot Evaluates your fun at every x between 1 and nSize to get the
value (saves it in a List) and always steps by integer increment 1.
You likely wanted to apply IntegerPart to your data not give it to
Part as the index into your data.

hope that helped



  • Prev by Date: Re: IntegerPart
  • Next by Date: Re: Manipulate and Initialization
  • Previous by thread: Re: IntegerPart
  • Next by thread: Re: IntegerPart