ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mp-tool
@ 1999-09-09 21:55 David Arnold
  1999-09-10  9:03 ` mp-tool Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: David Arnold @ 1999-09-09 21:55 UTC (permalink / 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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-09-10  9:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-09 21:55 mp-tool David Arnold
1999-09-10  9:03 ` mp-tool Taco Hoekwater
1999-09-10  8:03   ` mp-tool Hans Hagen

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).