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


Groups > comp.graphics.apps.gnuplot > #1144

Re: (negative Value)**(-1.0) creates complex values

From Ingo Thies <ingo.thies@gmx.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: (negative Value)**(-1.0) creates complex values
Date 2012-05-26 10:07 +0200
Message-ID <a2bh9vF1biU1@mid.individual.net> (permalink)
References <05e72b70-4601-4c79-9102-b6ee4ad1b6f9@k5g2000vbf.googlegroups.com> <a2a29qF85vU1@mid.dfncis.de>

Show all headers | View raw


Am 2012-05-25 20:45, schrieb Hans-Bernhard Bröker:

>> Is there a way to prevent gnuplot from generating complex numbers for
>> (negative Value)**(-1.0) and similar cases.
>
> No. Nor should there be one.

Well, (-1)**(-1) is just 1/(-1) = -1. The tiny imaginary part is just a 
rounding error. But I can't see a smooth way to avoid them since gnuplot 
doesn't know whether a real exponent is ever indented to become a 
non-integer value.

Best wishes,

Ingo

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

(negative Value)**(-1.0) creates complex values Michi <michael.boelling@gmail.com> - 2012-05-25 03:36 -0700
  Re: (negative Value)**(-1.0) creates complex values Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-05-25 20:45 +0200
    Re: (negative Value)**(-1.0) creates complex values Ingo Thies <ingo.thies@gmx.de> - 2012-05-26 10:07 +0200
      Re: (negative Value)**(-1.0) creates complex values sfeam <sfeam@users.sourceforge.net> - 2012-05-26 10:38 -0700
  Re: (negative Value)**(-1.0) creates complex values Ingo Thies <ingo.thies@gmx.de> - 2012-05-26 10:19 +0200
    Re: (negative Value)**(-1.0) creates complex values Michi <michael.boelling@gmail.com> - 2012-05-26 02:39 -0700
      Re: (negative Value)**(-1.0) creates complex values Ron Shepard <ron-shepard@NOSPAM.comcast.net> - 2012-05-26 11:42 -0500

csiph-web