Date: 7 May 1998 08:11:43 -0000 From: woju@freebsd.ntu.edu.tw To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/6541: New port: math/dc Message-ID: <19980507081143.13726.qmail@freebsd.ntu.edu.tw>
next in thread | raw e-mail | index | archive | help
>Number: 6541 >Category: ports >Synopsis: New port: math/dc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 7 01:10:00 PDT 1998 >Last-Modified: >Originator: woju >Organization: National Taiwan University >Release: FreeBSD 2.2.5-STABLE i386 >Environment: >Description: There are already many "calculator programs" available, however, I just can not find one "convenient enough" just like Casio-LCD calculator. So I make this one. INSTALL (cd /usr/bin; mv dc dc0) cp /usr/local/share/examples/rc.dc ~/.dcrc EXAMPLES `2pi` => `6.28...` // `2pi` equal to `2*pi` `a=12` => `12` // define a variable `a` `2(3+a` => `30` // `2(3+a` equal to `2*(3+a)` `b=2a` => `24` // define a var `b` `c:=2a` // define a delayed-var `c` `a=3` => `3` // modify a's value `b` => `24` // `b` doesn't update according to `a` `c` => `6` // `c` update according to `a` `sind[x]=sin[x pi/180]` // define a 1-var function `sind` `sind[30]` => `0.5` `int[c x+1,x,1,2]` => `10` // integration `sum[k,k,1,10]` => `55` // summation `k` => `1000` `m` => `1e-3` `M` => `1e6` .... // defined in `rc.dc`(auto-load script) `1/2'k` => `0.005` // `1/2'k` equal to `1/(2*k)` `0x10` => `16` // hex `0b1011` => `11` // bin `ans&0b1100` => `1000b` // AND operation `?` // Show brief help message `>aa` // SAVE user var's & fun's in `aa` `<aa` // LOAD user var's & fun's from `aa` >How-To-Repeat: ftp://ftp.FreeBSD.ORG/pub/FreeBSD/incoming/dc.tar.gz ftp://freebsd.ntu.edu.tw/upload/freebsd/dc.tar.gz >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980507081143.13726.qmail>