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


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

Re: Unexpected Output When Plotting...

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Unexpected Output When Plotting...
Date 2012-03-15 05:41 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jjrvdd$9ho$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 3/14/12 at 12:40 AM, jwkochanski@mymail.vcu.edu (James Kochanski)
wrote:

>Can anyone explain to me why Graphs #5 and #6 (please see below) do
>not include any output for x < 0 and x < -1, respectively?

>Following graph is only plotted from x = 0 to x = 10 Graph #5
>:   Plot[Cos[(x^3)^(1/3)], {x, -10, 10}]

>Following graph is only plotted from x = -1 to x = 10 Graph #6
>:   Plot[Cos[(x^3 + 1)^(1/3)], {x, -10, 10}]

By default, Mathematica assumes all variables are complex
variables. When taking a cube root of a negative value,
Mathematica does not by default return real values. Instead,
Mathematica returns a complex value by default. And since Plot
cannot plot a complex value, nothing is plotted in the regions
you note above.

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


Thread

Re: Unexpected Output When Plotting... Bill Rowe <readnews@sbcglobal.net> - 2012-03-15 05:41 +0000

csiph-web