Errors While Creating Simple Graph
- To: mathgroup at smc.vnet.net
- Subject: [mg8282] Errors While Creating Simple Graph
- From: ironwolf at dangerousgames.com (Ironwolf)
- Date: Sun, 24 Aug 1997 04:46:22 -0400
- Organization: Somewhere Out There
- Sender: owner-wri-mathgroup at wolfram.com
When I ask Mathematica (2.2) to perform the following plot, it works as expected, drawing a plot of two intersecting lines: In[1]:= Plot[{x + 1, 2x - 1}, {x, 0, 5}] Out[1]= -Graphics- However, when I use substitution to provide the list of equations, something goes wrong, and the resulting graph is empty: In[2]:= {x + 1, 2x - 1} Out[2]= {1 + x, -1 + 2 x} In[3]:= Plot[%2, {x, 0, 5}] Plot::plnr: CompiledFunction[{x}, <<1>>, -CompiledCode-] [<<1>>] is not a machine-size real number at x = 0.. Plot::plnr: CompiledFunction[{x}, <<1>>, -CompiledCode-] [<<1>>] is not a machine-size real number at x = 0.208333. Plot::plnr: CompiledFunction[{x}, <<1>>, -CompiledCode-] [<<1>>] is not a machine-size real number at x = 0.416667. General::stop: Further output of Plot::plnr will be suppressed during this calculation. Out[3]= -Graphics- This seems improper. Can anyone provide an explanation of this behavior? Thanks. ====================================================================== Robert McNally <mailto:ironwolf at dangerousgames.com> Visit <http://personalweb.lightside.com/pfiles/mcnally1.html> ---------------------------------------------------------------------- Finger for my PGP Key -- Protect Your Crypto-Rights! * Free Speech! Unsolicited Commercial E-Mail Sucks! * Visit http://www.vtw.org ======================================================================