Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

power function

12,937 views
Skip to first unread message

APB

unread,
Sep 16, 2002, 12:02:24 PM9/16/02
to
Newbie question: how do I specify a power function, in the likes of:

gnuplot> plot (x-1)^7
non-integer passed to boolean operator

Thanks!

--
___________________________________________________________

a p bertolini

"I computer sono inutili. Sanno darti solo risposte" (P. Picasso)

#ICQ: 10681264
(www.webwarrior.org)


---
=== Si certifica che questa mail (inclusa di eventuali allegati) non è
infetta da virus al momento dell'invio ===

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.384 / Virus Database: 216 - Release Date: 21/08/2002


Hans-Bernhard Broeker

unread,
Sep 16, 2002, 12:20:52 PM9/16/02
to
APB <bert...@xxx.org> wrote:
> Newbie question: how do I specify a power function, in the likes of:

> gnuplot> plot (x-1)^7
> non-integer passed to boolean operator

plot (x-1)**7

For details:

help operators binary
--
Hans-Bernhard Broeker (bro...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

Uwe Zimmermann

unread,
Sep 16, 2002, 12:10:26 PM9/16/02
to
try C-like

plot (x-1)**7

Uwe.

Hans-Bernhard Broeker

unread,
Sep 16, 2002, 12:36:20 PM9/16/02
to
Uwe Zimmermann <uw...@kth.se> wrote:
> try C-like

> plot (x-1)**7

Actually that's not at all C-like. C doesn't have any 'to power of'
operator at all --- it provides only the pow(x,y) functions in its math
library instead. gnuplot borrowed 'x**y' to mean pow(x,y) from FORTRAN.

APB

unread,
Sep 16, 2002, 12:55:53 PM9/16/02
to
Thanks all!

I never heard of the term "exponentiation" thus I couldn't find it in the
on-line help :-)

--
___________________________________________________________

a p bertolini

"I computer sono inutili. Sanno darti solo risposte" (P. Picasso)

#ICQ: 10681264
(www.webwarrior.org)
"Hans-Bernhard Broeker" <bro...@physik.rwth-aachen.de> ha scritto nel
messaggio news:am50d4$eg5$1...@nets3.rz.RWTH-Aachen.DE...

Uwe Zimmermann

unread,
Sep 16, 2002, 3:02:17 PM9/16/02
to
sorry, mix-up, but anyway, it works...


Uwe.

0 new messages