Prev: problem with the usage or implemetation of EllipticF[x,m] and
Next: Reading Binary Data from SQL Request
From: Bob Hanlon on 17 Jun 2010 02:03 On my system, these all work fine without any error messages. $Version 7.0 for Mac OS X x86 (64-bit) (February 19, 2009) fff = Compile[{x}, x^2]; DiscretePlot[fff[x], {x, 1, 10, 0.1}, Joined -> True] DiscretePlot[{fff[x]}, {x, 1, 10, 0.1}, Joined -> True] ListLinePlot[ {Table[fff[x], {x, 1, 10, 0.1}]}, Joined -> True, Filling -> Bottom] ListLinePlot[ fff /@ Range[1, 10, 0.1], Joined -> True, Filling -> Bottom] However, this works but gives an error message ListLinePlot[ fff[Range[1, 10, 0.1]], Joined -> True, Filling -> Bottom] Bob Hanlon ---- Andrzej Kozlowski <akoz(a)mimuw.edu.pl> 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=
From: Sjoerd C. de Vries on 20 Jun 2010 03:44 Development version? Is that an Mathematica 8 beta or so? So, we shouldn't expect it anytime soon? Cheers -- Sjoerd On Jun 16, 11:39 am, Andrzej Kozlowski <a...(a)mimuw.edu.pl> wrote: > On 15 Jun 2010, at 16:52, Ingolf Dahl wrote: > > > But then I tested with all the suggested commands in Mathematica 7.0.1.0 > > (Windows 7, 64 bit), and I did not obtain any error messages at all. > > Thanks. In fact I was using the development version (and forgot about it) and can now report this as a bug. > > Andrzej
First
|
Prev
|
Pages: 1 2 Prev: problem with the usage or implemetation of EllipticF[x,m] and Next: Reading Binary Data from SQL Request |