       Re: Unexpected Output When Plotting...

• To: mathgroup at smc.vnet.net
• Subject: [mg125491] Re: Unexpected Output When Plotting...
• From: Murta <rodrigomurtax at gmail.com>
• Date: Thu, 15 Mar 2012 00:34:07 -0500 (EST)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• References: <jjpb6t\$p8g\$1@smc.vnet.net>

```Hi James
When the exponent is not even, you get a complex number in the
negative domain.
You can solve this using Abs:
Plot[Cos[Abs[(x^3)^(1/3)]], {x, -10, 10}]

[]'s
Murta

On Mar 14, 2:43 am, James Kochanski <jwkochan... at mymail.vcu.edu>
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?
>
> Thanks!
>
> Jim Kochanski
>
> Following graphs are plotted from x = -10 to x = 10
> Graph #1 :    Plot[Cos[x], {x, -10, 10}]
> Graph #2 :    Plot[Cos[x + 1], {x, -10, 10}]
> Graph #3 :    Plot[Cos[x^3], {x, -10, 10}]
> Graph #4 :    Plot[Cos[x^3 + 1], {x, -10, 10}]
>
> 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}]

```

• Prev by Date: Re: How to remove unwanted, garbage plotmarkers
• Next by Date: Re: Map onto a column
• Previous by thread: Re: Unexpected Output When Plotting...
• Next by thread: Re: Unexpected Output When Plotting...