ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <darnold@northcoast.com>
Subject: mp-tool
Date: Thu, 09 Sep 1999 14:55:56 -0700	[thread overview]
Message-ID: <3.0.5.32.19990909145556.00b4fb30@mail.northcoast.com> (raw)

All,

Defined in mp-tool is

def tand (expr x) = (sind(x)/cosd(x))                enddef;
def sqr  (expr
x) = (x*x)                            enddef;
def ln   (expr x) = (if x=0:
0 else: mlog(x)/256 fi) enddef;
def exp  (expr x) = ((mexp 256)**x)
         enddef;
def pow  (expr x) = (x**power)
enddef;
def inv  (expr x) = (if x=0: 0 else: x**-1 fi)       enddef;
def
asin (expr x) = (x+(x**3)/6+3(x**5)/40)          enddef;
def acos (expr x)
= (asin(-x))                       enddef;
def atan (expr x) =
(x-(x**3)/3+(x**5)/5-(x**7)/7)   enddef;

It would be useful to add to this list. Specifically, cos, sin, tan for
radian measure, and create a value for pi. Maybe,

pi=4*atan(1);
def sin (expr x) = sind(x*(180/pi)) enddef;

etc.

Any other suggested additions?


             reply	other threads:[~1999-09-09 21:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-09 21:55 David Arnold [this message]
1999-09-10  9:03 ` mp-tool Taco Hoekwater
1999-09-10  8:03   ` mp-tool 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=3.0.5.32.19990909145556.00b4fb30@mail.northcoast.com \
    --to=darnold@northcoast.com \
    /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).