MathGroup Archive 2013

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

Search the Archive

Re: what is wrong with this code?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130335] Re: what is wrong with this code?
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Wed, 3 Apr 2013 04:11:42 -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

On 4/2/13 at 3:24 AM, dougwangsaif at gmail.com wrote:

>f[x_] := If[EvenQ[IntegerPart[x]], 0.4, 0.8]; Plot[f[x], {x, 1,
>101}]

Nothing. But if you are expecting the plot to be a square wave
you will need to change the defaults that determine how plot
samples the function f. Read the documentation for Plot. Pay
particular attention to options PlotPoints and MaxRecursion.




  • Prev by Date: Locators: Retrieve coordinates data to added locators
  • Next by Date: Re: what is wrong with this code?
  • Previous by thread: Re: what is wrong with this code?
  • Next by thread: Re: what is wrong with this code?