From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: mathfun
Date: Fri, 21 May 2021 17:24:08 +0200 [thread overview]
Message-ID: <AC0C1F2E-C6B3-4892-89B1-707E487FBD53@gmail.com> (raw)
In-Reply-To: <f84c3bc1-c1fa-efb7-8fb3-ac4398312742@xs4all.nl>
Hi Hans,
Thanks for the new features you have introduced in the module mathfun.
Actually I have been using commands such as the one mentioned by Aditya,
\ctxlua{myfunction(args)}
but for the formatting of the output, that is when one wants only 3 or four decimal digits, that approach is not very handy.
So I will use the new feature and I’ll put it on the wiki once I have a few interesting examples.
By the way, what does
\complexexpr{123 + new(456,789)}
mean?
Best regards: Otared
> On 21 May 2021, at 17:06, Hans Hagen <j.hagen@xs4all.nl> wrote:
>
> On 5/21/2021 4:37 PM, Aditya Mahajan wrote:
>> On Fri, 21 May 2021, Hans Hagen wrote:
>>> I uploaded an lmtx update (only m-mathfun added).
>>>
>>> Attached a short description of this (windy stormy friday afternoon) math
>>> experiment. The question is, what similar features using this trickery come to
>>> mind.
>> Personally, I can see occasionally making use of this instead of \ctxlua{myfunction(args)}. There is a similar library called pgfmath which is part of the tikz package, which is used quite heavily by the pgfplots package but also appears to be popular for other purposes:
>> https://tex.stackexchange.com/questions/tagged/pgfmath?tab=Votes
> I guessed right that you would be the first to to react! Anyway, I suppose that you come up with additional demands like:
>
> \permanent\protected\def\randomized{\thewithproperty\plustwo}
>
> so that we can do:
>
> $ \sin(x) = \randomized\sin{2pi} $
>
> which i'm sure you can figure out by looking at the source.
>
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-05-21 15:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-21 13:15 mathfun Hans Hagen
2021-05-21 14:37 ` mathfun Aditya Mahajan
2021-05-21 15:06 ` mathfun Hans Hagen
2021-05-21 15:24 ` Otared Kavian [this message]
2021-05-21 16:07 ` mathfun Hans Hagen
2021-05-21 20:41 ` mathfun Aditya Mahajan
2021-05-21 21:01 ` mathfun Henning Hraban Ramm
2021-05-22 6:51 ` mathfun Hans Hagen
2021-05-22 21:34 ` mathfun Jairo A. del Rio
2021-05-23 9:51 ` mathfun Hans Hagen
2021-05-23 13:45 ` mathfun Jairo A. del Rio
2021-05-23 14:35 ` mathfun Hans Hagen
2021-05-23 15:33 ` mathfun Jairo A. del Rio
2021-05-23 21:29 ` mathfun Hans Hagen
2021-05-23 14:40 ` mathfun Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AC0C1F2E-C6B3-4892-89B1-707E487FBD53@gmail.com \
--to=otared@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).