MathGroup Archive 2007

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

Search the Archive

Re: 3DPlot in Mathematica 6

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80332] Re: 3DPlot in Mathematica 6
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 18 Aug 2007 05:28:34 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fa3dbs$fs$1@smc.vnet.net>

Dr. Van Nostrandt wrote:

> I use Mathematica 6 on a PC (Intel Celeron CPU 2.6 GHz, 256 RAM) under Ubuntu 7.04.
> When I run the command Plot3D[f,options] it doesn't display me the function graph if f has a complicated form. If f it's enough simple, the function is displayed.
> For example the command Plot3D[Sin[x+Sin[y]],{x,-10,10},{y,-10,10}] shows me the graph, but already for 
> Plot3D[2 [Sin[x+Sin[y]]],{x,-10,10},{y,-10,10}] 

<snip>

In the expression above, you are using the *WRONG* type of delimiters. 
Square brackets are use only for function calls. Parentheses are used 
for grouping terms and expressions. Curly brackets are used for lists.

See "Getting Used to Mathematica"

http://reference.wolfram.com/mathematica/tutorial/GettingUsedToMathematica.html

and also "The Four Kinds of Bracketing in Mathematica"

http://reference.wolfram.com/mathematica/tutorial/TheFourKindsOfBracketingInMathematica.html

So, your expression with the correct syntax is

Plot3D[2*Sin[x + Sin[y]], {x, -10, 10}, {y, -10, 10}]

-- 
Jean-Marc



  • Prev by Date: Re: Mathematica 6.0 bug in computing MathieuC
  • Next by Date: Re: Is there a way to rewrite Roots[#n] result in easier to read
  • Previous by thread: Re: 3DPlot in Mathematica 6
  • Next by thread: Launch the Mathematica Kernal to listen on Unix