Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Special functions in gnuplot Followup-To: comp.graphics.apps.gnuplot Date: Sat, 18 Aug 2012 10:56:09 -0700 Organization: gnuplot development team Lines: 10 Message-ID: References: <1694fa1b-c5e4-4561-8594-40d67337d065@googlegroups.com> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Sat, 18 Aug 2012 17:56:10 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="de68407e1e0278021e2f738a9cf7b10c"; logging-data="11117"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QfjenmijY+XBkzgYoUKjF" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:vXUbyECGaAxaCc4O82cj4ZFe00c= Xref: csiph.com comp.graphics.apps.gnuplot:1340 hogney@gmail.com wrote: > I'm not too familiar with the gnuplot source, but I took a look. Yes, > it involves a confusing spaghetti of name substitution. eval.c maps > user input to internal names. Gamma function is defined in specfun.c > from line 296 to line 553. That code is only a last resort fallback that is compiled if the system does not provide a gamma function in the math library. Normally "gamma(x)" from the gnuplot command line will use the lgamma() function from the system library libm.