Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14039

Re: what is wrong with this code?

From Peter Pein <petsie@dordos.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: what is wrong with this code?
Date 2013-04-03 08:08 +0000
Message-ID <kjgo23$pva$1@smc.vnet.net> (permalink)
References <kje13u$grc$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Am 02.04.2013 09:24, schrieb dougwangsaif@gmail.com:
> f[x_] := If[EvenQ[IntegerPart[x]], 0.4, 0.8];
> Plot[f[x], {x, 1, 101}]
>
nothing wrong

and this is correct too:

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

Peter

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

what is wrong with this code? dougwangsaif@gmail.com - 2013-04-02 07:24 +0000
  Re: what is wrong with this code? psycho_dad <s.nesseris@gmail.com> - 2013-04-03 08:07 +0000
  Re: what is wrong with this code? Peter Pein <petsie@dordos.net> - 2013-04-03 08:08 +0000

csiph-web