MathGroup Archive 2010

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

Search the Archive

Re: DiscretePlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110385] Re: DiscretePlot
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Wed, 16 Jun 2010 05:38:14 -0400 (EDT)

Hi Andrzej,

sorry, no such behavoir here. Works fine without any message.

7.0 for Linux x86 (64-bit) (February 18, 2009)

Cheers
Patrick


On Tue, 2010-06-15 at 02:27 -0400, Andrzej Kozlowski wrote:
> I am somewhat puzzled by the following behaviour of DiscretePlot
> 
> fff = Compile[{x}, x^2];
> 
> This works fine:
> 
> DiscretePlot[fff[x], {x, 1, 10, 0.1}, Joined -> True]
> 
> This also works, but produces an error message:
> 
> DiscretePlot[{fff[x]},{x,1,10,0.1},Joined->True]
> CompiledFunction::cfsa: Argument x at position 1 should be a machine-size real number. >>
> 
> This becomes a (slight) problem when plotting several functions. Using ListLinePlot avoids it:
> 
> ListLinePlot[{Table[fff[x], {x, 1, 10, 0.1}]}, Joined -> True,
>  Filling -> Bottom]
> 
> Andrzej Kozlowski=
> 



  • Prev by Date: Re: Simplification question
  • Next by Date: Re: how to scale text to a bounding rectangle?
  • Previous by thread: Re: DiscretePlot
  • Next by thread: Re: DiscretePlot