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.ha...@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 ___________________________________________________________________________________