From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105187 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Mikael P. Sundqvist" Newsgroups: gmane.comp.tex.context Subject: Re: new (lmtx) beta Date: Fri, 4 Oct 2019 21:33:49 +0200 Message-ID: References: <1a5045de-4a3f-d16f-0041-4eb21a50e86b@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5738326295733951679==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="129958"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 04 21:34:45 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iGTLg-000XfX-HN for gctc-ntg-context-518@m.gmane.org; Fri, 04 Oct 2019 21:34:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A73F4161031; Fri, 4 Oct 2019 21:34:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vr9HucC44HtJ; Fri, 4 Oct 2019 21:34:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BEB401611E1; Fri, 4 Oct 2019 21:34:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 23F3B16124F for ; Fri, 4 Oct 2019 21:34:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2k5Gk6p1eoFm for ; Fri, 4 Oct 2019 21:34:17 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.176; helo=mail-qt1-f176.google.com; envelope-from=mickep@gmail.com; receiver= Original-Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7B663161018 for ; Fri, 4 Oct 2019 21:34:17 +0200 (CEST) Original-Received: by mail-qt1-f176.google.com with SMTP id d16so10080102qtq.8 for ; Fri, 04 Oct 2019 12:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=qxiJQH9bEVrL9ZdJobzcOXfrN7Enbw9sDRghc4P2HJo=; b=Jqw68s2uM4MfB/oQY8kuSVutadOzQsyJ4UIeSKlxvtBZwoQYch5edU6mHB4Ly8RI06 IBPsFhCGSA2q6jzY/Yv4TM9Sm223+u602WAu3PBRfTWVgRROKueqS08zWYHDzOz7aoEN T3fB2icboYB0I3axCkCp7x+BYxi+IZ3npetIlAQVRFpdqC9YwfJWK4+SSpcpg+ICZQje jsX/+0NzH4PBzsqPJMOEMNnYhjsILdagAt5ffeXQcr0KcnM/H3D8of9JR6azMREVmChA 2cRguaKc2rUR/l/IhI9u8NjattRvCqKowFea6m37qV49W/SZyJBzcLVCRX44XCSXZ7b9 ra7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=qxiJQH9bEVrL9ZdJobzcOXfrN7Enbw9sDRghc4P2HJo=; b=bMaTjyRBWXs1S4O/axihPVEQJj4zKngpJ7PJYhscwhanhkmYxJz/lxIeEarwwb5ZfR /oV2ZbNhfSG2nvj2CiHkZE4rwin50bTR/SBqcaMWqjFkqxiaQHp3ivy/4nRGTKzHzf0Z hHOHcNtKcUJOE/oPyDVXAaQQPWWGbRV9nljTrsVJLbRjYcI3bouUCcAy4xoXCvcRtJ5s gtuuawuWxLuxvMRtdRpylriSk21eawKff/77iJYlk8rNHXZi+0z+XCZb1HSOkmCSOx/q 9/0LfWEtcD6zO759ey+qKSAVn7GL9SpyWQWSOxzAdb++BFcQkPgeP960WEsWrUpwsyLJ 5CTA== X-Gm-Message-State: APjAAAWjHX8EJV22wcaW/3x2GWgv7u5s5+8BPDnRU866noxhzT7Qjq3A rN2a67nbwNNxdQbpJDgza9sBPEaepXl7jCnl+IJYS3Xm X-Google-Smtp-Source: APXvYqzoYQBo1u3wEfswTaAfCtya39f6YfwawkPWmZxGzRdYMJ2OMs/RTtM8NDmr7V2pJ2gHcy0sRRTW0OnupbKKfA8= X-Received: by 2002:ac8:3a86:: with SMTP id x6mr17418698qte.316.1570217655673; Fri, 04 Oct 2019 12:34:15 -0700 (PDT) In-Reply-To: <1a5045de-4a3f-d16f-0041-4eb21a50e86b@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:105187 Archived-At: --===============5738326295733951679== Content-Type: multipart/alternative; boundary="000000000000962ba905941ac94e" --000000000000962ba905941ac94e Content-Type: text/plain; charset="UTF-8" On Fri, Oct 4, 2019 at 6:11 PM Hans Hagen wrote: > Hi, > > I uploaded a new lmtx beta. Again some more metafun trickery (see > luametafun manual). I attached an (lmtx only) example of some experiment > code, dedicated to Alan Braslau (teacher among other things). > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > Hi, I read the new manual with a great joy! This is really nice improvements of MetaFun! I also like the 3D plots! I had the possibility to try out some contour graphics on a freshly updated system. I have two questions: 1) I think the first (blue) plot looks fine and it looks like it could be the same curve as the blue one in the Mathematica plot (page 3). Why does my second example (orange) not match with the result from Mathematica (orange)? (I think I do something wrong) 2) Is there a way to combine the two contour plots in one MetaFun drawing? If I add them both to the same, only the last one shows. If I try functions={"-4+x^2+x^5+15*y-y^2-10*x^3*y^2+5*x*y^4","-15*x+2*x*y+5*x^4*y-10*x^2*y^3+y^5"} it does not show both either. /Mikael Test document (output was too big to attach (sorry if it came through to someone), so I put it at http://www.maths.lth.se/~mickep/polynomnoll.pdf ) \starttext \startMPpage[offset=3bp,instance=doublefun] draw lmt_contour [ xmin=-5, xmax=5, ymin=-5, ymax=5, xstep=0.01, ystep=0.01, range={0}, levels=1, function="-4+x^2+x^5+15*y-y^2-10*x^3*y^2+5*x*y^4", linecolor="darkblue", linewidth=1, legend=false, cache=true, ] xsized 10cm ; \stopMPpage \startMPpage[offset=3bp,instance=doublefun] draw lmt_contour [ xmin=-5, xmax=5, ymin=-5, ymax=5, xstep=0.01, ystep=0.01, range={0}, levels=1, function="-15*x+2*x*y+5*x^4*y-10*x^2*y^3+y^5", linecolor="orange", linewidth=1, legend=false, cache=true, ] xsized 10cm ; \stopMPpage \startbuffer[mmainput] ContourPlot[ {-4+x^2+x^5+15y-y^2-10x^3y^2+5x*y^4 == 0, -15x+2x*y+5*x^4*y-10x^2*y^3+y^5 == 0}, {x, -5, 5}, {y, -5, 5}, Frame -> False] \stopbuffer \startTEXpage[offset=2bp] \typebuffer[mmainput] \externalfigure[mathematicaplot][width=10cm] \stopTEXpage \stoptext --000000000000962ba905941ac94e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri,= Oct 4, 2019 at 6:11 PM Hans Hagen <j.hagen@xs4all.nl> wrote:
Hi,

I uploaded a new lmtx beta. Again some more metafun trickery (see
luametafun manual). I attached an (lmtx only) example of some experiment code, dedicated to Alan Braslau (teacher among other things).

Hans

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________


Hi,
<= div>
I read the new manual with a great joy! This is really n= ice improvements of MetaFun! I also like the 3D plots!

=
I had the possibility to try out some contour graphics on a freshly up= dated system. I have two questions:

1) I think the= first (blue) plot looks fine and it looks like it could be the same curve = as the blue one in the Mathematica plot (page 3). Why does my second exampl= e (orange) not match with the result from Mathematica (orange)? (I think I = do something wrong)=C2=A0
2) Is there a way to combine the two co= ntour plots in one MetaFun drawing? If I add them both to the same, only th= e last one shows. If I try functions=3D{"-4+x^2+x^5+15*y-y^2-10*x^3*y^= 2+5*x*y^4","-15*x+2*x*y+5*x^4*y-10*x^2*y^3+y^5"} it does not= show both either.

/Mikael

Test document (output was too big to attach (sorry if it came through= to someone), so I put it at http://www.maths.lth.se/~mickep/polynomnoll.pdf )

\starttext
\startMPpage[offset=3D3bp,instance=3Ddouble= fun]
draw lmt_contour [
xmin=3D-5,
xmax=3D5,
ymin=3D-5,
ymax= =3D5,
xstep=3D0.01,
ystep=3D0.01,
range=3D{0},
levels=3D1,
f= unction=3D"-4+x^2+x^5+15*y-y^2-10*x^3*y^2+5*x*y^4",
linecolor= =3D"darkblue",
linewidth=3D1,
legend=3Dfalse,
cache=3Dtr= ue,
] =C2=A0xsized 10cm ;
\stopMPpage

\startMPpage[offset=3D3b= p,instance=3Ddoublefun]
draw lmt_contour [
xmin=3D-5,
xmax=3D5,ymin=3D-5,
ymax=3D5,
xstep=3D0.01,
ystep=3D0.01,
range=3D{0},<= br>levels=3D1,
function=3D"-15*x+2*x*y+5*x^4*y-10*x^2*y^3+y^5"= ,
linecolor=3D"orange",
linewidth=3D1,
legend=3Dfalse,cache=3Dtrue,
] =C2=A0xsized 10cm ;
\stopMPpage

\startbuffer= [mmainput]
ContourPlot[
=C2=A0{-4+x^2+x^5+15y-y^2-10x^3y^2+5x*y^4 =3D= =3D 0,
=C2=A0 -15x+2x*y+5*x^4*y-10x^2*y^3+y^5 =3D=3D 0},
=C2=A0 {x, -= 5, 5}, {y, -5, 5}, Frame -> False]
\stopbuffer
\startTEXpage[offse= t=3D2bp]
\typebuffer[mmainput]

\externalfigure[mathematicaplot][w= idth=3D10cm]
\stopTEXpage
\stoptext
=C2=A0
--000000000000962ba905941ac94e-- --===============5738326295733951679== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5738326295733951679==--