From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71710 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Plotting a graph of a function f, like f(x) = e^x, with MetaPost Date: Thu, 13 Oct 2011 10:04:47 +0200 Message-ID: References: <1318373112.3726.35.camel@mattotaupa> <20111012053642.GA53825@iram-hb-003386.extra.cea.fr> <1318457618.1055.24.camel@mattotaupa> <1318461575.1055.38.camel@mattotaupa> <20111013075920.GA6076@iram-ha-003840.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0988372255==" X-Trace: dough.gmane.org 1318493110 4230 80.91.229.12 (13 Oct 2011 08:05:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2011 08:05:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 13 10:05:06 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1REGHq-0004Ew-Bg for gctc-ntg-context-518@m.gmane.org; Thu, 13 Oct 2011 10:05:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 02F7ACB043; Thu, 13 Oct 2011 10:05:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Xn7EKKHoI-s6; Thu, 13 Oct 2011 10:04:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06656CB03D; Thu, 13 Oct 2011 10:04:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56B2ECB03D for ; Thu, 13 Oct 2011 10:04:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TCXPHIIwI+6u for ; Thu, 13 Oct 2011 10:04:50 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 2BBCBCB03C for ; Thu, 13 Oct 2011 10:04:50 +0200 (CEST) Original-Received: from mail-qy0-f176.google.com (mail-qy0-f176.google.com [209.85.216.176]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9D84mvq009860 for ; Thu, 13 Oct 2011 10:04:49 +0200 Original-Received: by qyk27 with SMTP id 27so983835qyk.14 for ; Thu, 13 Oct 2011 01:04:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CR5PDkv7mU03MdkeEzaREZ0C0lObb+c5CoD5d8MwYls=; b=SD3MEh0qZMJFyf80GdGdEcZLMtOcnlhECNeF0hfvMS8SaPl+Urgpq5dOLGSf8X/HfE fAOcKaQMcDMMeJeKVgoGlWI9EkWgGBM9uHzzebfLG+ITUEPUDDmwdeFWAL7eCtCzDCFt 6YyRjmHs8CkrKO512lFnZUkhwiDHVEka3bnZ8= Original-Received: by 10.182.185.109 with SMTP id fb13mr1230226obc.74.1318493087646; Thu, 13 Oct 2011 01:04:47 -0700 (PDT) Original-Received: by 10.182.183.98 with HTTP; Thu, 13 Oct 2011 01:04:47 -0700 (PDT) In-Reply-To: <20111013075920.GA6076@iram-ha-003840.extra.cea.fr> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.176; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0dFI84Ntu - ce8eb6a163f9 - 20111013 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71710 Archived-At: --===============0988372255== Content-Type: multipart/alternative; boundary=f46d0444ee9320c40b04af299821 --f46d0444ee9320c40b04af299821 Content-Type: text/plain; charset=UTF-8 On Thu, Oct 13, 2011 at 9:59 AM, Alan Braslau wrote: > On Thu, Oct 13, 2011 at 02:30:07AM +0200, Mojca Miklavec wrote: > > > > MetaPost doesn't know erf and other obscure functions > > Metapost could possibly be extended to provide all of the functions > in the standard math library. In fact, it would be nice if there be > some hook to `link' to additional functions, written in C or in Fortran, > for example. (I regularly use the complex error function.) > Maybe this could be possible in luatex, made available to metapost > through some communication pipe? > > yes, just build a binding for the library (or use something else like cinvoke) http://www.gust.org.pl/bachotex/2011-en/presentations/Scarso_2_2011 pag 15 or so If I recall correctly, I've built a binding for gsl too. -- luigi --f46d0444ee9320c40b04af299821 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Oct 13, 2011 at 9:59 AM, Alan Br= aslau <alan.bra= slau@cea.fr> wrote:
On Thu, Oct 13, 2011 at 02:30:07AM +0200, Mojca Miklavec = wrote:
>
> MetaPost doesn't know erf and other obscure functions

Metapost could possibly be extended to provide all of the functions in the standard math library. In fact, it would be nice if there be
some hook to `link' to additional functions, written in C or in Fortran= ,
for example. (I regularly use the complex error function.)
Maybe this could be possible in luatex, made available to metapost
through some communication pipe?

yes, just build a bind= ing for the library (or use something else like cinvoke)
http://www= .gust.org.pl/bachotex/2011-en/presentations/Scarso_2_2011
pag 15 or so
If I recall correctly, I've built a binding= for gsl too.

--
luigi

--f46d0444ee9320c40b04af299821-- --===============0988372255== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0988372255==--