Groups | Search | Server Info | Login | Register


Groups > comp.lang.awk > #153

Re: gnuplot algorithm help

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail
From Janis Papanagnou <janis_papanagnou@hotmail.com>
Newsgroups comp.lang.awk
Subject Re: gnuplot algorithm help
Date Mon, 11 Apr 2011 12:06:50 +0200
Organization Aioe.org NNTP Server
Lines 15
Message-ID <inujrn$6dp$1@speranza.aioe.org> (permalink)
References <4da27014$0$669$c3e8da3$b280bf18@news.astraweb.com> <inue7l$oa7$1@speranza.aioe.org>
NNTP-Posting-Host N3dfDC2+TVpvKERkVwKAWw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9
X-Notice Filtered by postfilter v. 0.8.2
Xref x330-a1.tempe.blueboxinc.net comp.lang.awk:153

Show key headers only | View raw


Am 11.04.2011 10:30, schrieb Janis Papanagnou:
>

Or rather...?

> /^#/ { next }
> $1 < s { f2 += $2 }

   $1 < s { $2 += f2 }

> s && $1 >= s { print f1, f2, f3 }
> { f1 = $1; f2 = $2; f3 = $3; s = $1 + $3 }
> END { print f1, f2, f3 }

Janis

Back to comp.lang.awk | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

gnuplot algorithm help Mike Rhodes <M8R-1cd059@mailinator.com> - 2011-04-10 23:05 -0400
  Re: gnuplot algorithm help Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-11 10:30 +0200
    Re: gnuplot algorithm help Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-11 12:06 +0200
    Re: gnuplot algorithm help Mike Rhodes <M8R-1cd059@mailinator.com> - 2011-04-11 06:11 -0400
      Re: gnuplot algorithm help Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-11 14:40 +0200
        Re: gnuplot algorithm help Mike Rhodes <M8R-1cd059@mailinator.com> - 2011-04-11 12:29 -0400
          Re: gnuplot algorithm help Janis Papanagnou <janis_papanagnou@hotmail.com> - 2011-04-11 19:51 +0200
            Re: gnuplot algorithm help Mike Rhodes <M8R-1cd059@mailinator.com> - 2011-04-11 19:42 -0400

csiph-web