summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2000-02-20 14:40:34 +0000
committerdmcmahill <dmcmahill>2000-02-20 14:40:34 +0000
commite905988a0a488ade8a1d7f0134b48c6134f6cd2f (patch)
tree54a78d3b8ec69639c5c1dc581d362bb771bc072b /math
parentc11cf3d2a8db908ac195bcf53a39d7e703f354bf (diff)
downloadpkgsrc-e905988a0a488ade8a1d7f0134b48c6134f6cd2f.tar.gz
Initial import of yacas-1.0.28
Yacas (Yet Another Computer Algebra System) is a small and highly flexible computer algebra language. The syntax uses a infix-operator grammar parser. The distribution contains a small library of mathematical functions, but its real strength is in the language in which you can easily write your own symbolic manipulation algorithms. It supports arbitrary precision arithmetic. The current version is 1.0.28 (the first release was 1.0.0). The language is very much in a finished state. Any code written for it should be usable in future versions. Also, the language should prove very easy to learn. Yacas is written in very clean c++ code, and is very portable . It can compile stand-alone, and is easily embeddable. Yacas contains a native arbitrary precision arithmetic module, but can also be used with GMP. Things implemented include: arbitrary precision, rational numeric, vector, complex, and matrix computations (including inverses and determinants and solving matrix equations), derivatives, solving, Taylor series, numerical solving (Newtons method), and a lot more non-mathematical algorithms. The language natively supports variables and user-defined functions. There is basic support for polynomials.
Diffstat (limited to 'math')
-rw-r--r--math/yacas/Makefile20
-rw-r--r--math/yacas/files/md53
-rw-r--r--math/yacas/files/patch-sum6
-rw-r--r--math/yacas/patches/patch-aa24
-rw-r--r--math/yacas/patches/patch-ab9
-rw-r--r--math/yacas/patches/patch-ac15
-rw-r--r--math/yacas/patches/patch-ad25
-rw-r--r--math/yacas/pkg/COMMENT1
-rw-r--r--math/yacas/pkg/DESCR21
-rw-r--r--math/yacas/pkg/MESSAGE4
-rw-r--r--math/yacas/pkg/PLIST101
11 files changed, 229 insertions, 0 deletions
diff --git a/math/yacas/Makefile b/math/yacas/Makefile
new file mode 100644
index 00000000000..8f710fc5557
--- /dev/null
+++ b/math/yacas/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/02/20 14:40:34 dmcmahill Exp $
+#
+
+DISTNAME= yacas-1.0.28
+CATEGORIES= math
+MASTER_SITES= http://www.xs4all.nl/~apinkus/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.xs4all.nl/~apinkus/yacas.html
+
+GNU_CONFIGURE= YES
+
+post-patch:
+ cd ${WRKSRC}; ${SED} 's|@prefix@|${PREFIX}|g' yacas.sh.in > \
+ yacas.sh
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/yacas.sh ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/yacas/files/md5 b/math/yacas/files/md5
new file mode 100644
index 00000000000..08e013fe08d
--- /dev/null
+++ b/math/yacas/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/02/20 14:40:35 dmcmahill Exp $
+
+MD5 (yacas-1.0.28.tar.gz) = 017589752a58802ae0208ce9ff6796d0
diff --git a/math/yacas/files/patch-sum b/math/yacas/files/patch-sum
new file mode 100644
index 00000000000..7969918a4fc
--- /dev/null
+++ b/math/yacas/files/patch-sum
@@ -0,0 +1,6 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/02/20 14:40:35 dmcmahill Exp $
+
+MD5 (patch-aa) = 34d3d0591a66b371bfbb0f39a730293a
+MD5 (patch-ab) = 52c89bbfbfaba1f55154406251ce3129
+MD5 (patch-ac) = 1ceb2d569c49797087f7df8e5486da3e
+MD5 (patch-ad) = cb7a4ea79580f13117a24c2907e54007
diff --git a/math/yacas/patches/patch-aa b/math/yacas/patches/patch-aa
new file mode 100644
index 00000000000..1d7a4a43b83
--- /dev/null
+++ b/math/yacas/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/02/20 14:40:35 dmcmahill Exp $
+
+--- ./server/localsendreceive.cc.orig Sun Dec 12 22:34:42 1999
++++ ./server/localsendreceive.cc Sat Feb 19 15:31:49 2000
+@@ -1,12 +1,16 @@
+
++#if !defined(__NetBSD__)
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+-
+-#include <sys/ioctl.h>
++#endif
+
+
++#include <stdio.h>
++#include <string.h>
++#include <sys/ioctl.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+-#include <stdio.h>
++#include <sys/time.h>
++#include <sys/uio.h>
+ #include <sys/un.h>
+ #include <unistd.h>
diff --git a/math/yacas/patches/patch-ab b/math/yacas/patches/patch-ab
new file mode 100644
index 00000000000..16394aad6be
--- /dev/null
+++ b/math/yacas/patches/patch-ab
@@ -0,0 +1,9 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/02/20 14:40:35 dmcmahill Exp $
+
+--- ./server/sendreceive.cc.orig Sun Nov 28 12:50:55 1999
++++ ./server/sendreceive.cc Sat Feb 19 21:08:41 2000
+@@ -1,3 +1,4 @@
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
diff --git a/math/yacas/patches/patch-ac b/math/yacas/patches/patch-ac
new file mode 100644
index 00000000000..2072260dae1
--- /dev/null
+++ b/math/yacas/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/02/20 14:40:35 dmcmahill Exp $
+
+needed to remove the -O2 from this line. Otherwise NetBSD-1.4.1/pmax
+assembler never finishes.
+
+--- ./triage/Makefile.in.orig Thu Feb 10 23:58:10 2000
++++ ./triage/Makefile.in Sat Feb 19 22:05:27 2000
+@@ -222,4 +222,7 @@
+ $(CXXLINK) $(example3_LDFLAGS) $(example3_OBJECTS) $(example3_LDADD) $(LIBS)
+
++example4.o: example4.cc
++ $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) -g -c example4.cc
++
+ example4: $(example4_OBJECTS) $(example4_DEPENDENCIES)
+ @rm -f example4
diff --git a/math/yacas/patches/patch-ad b/math/yacas/patches/patch-ad
new file mode 100644
index 00000000000..6fd2ca2dbc8
--- /dev/null
+++ b/math/yacas/patches/patch-ad
@@ -0,0 +1,25 @@
+$NetBSD: patch-ad,v 1.1.1.1 2000/02/20 14:40:35 dmcmahill Exp $
+
+--- /dev/null Sun Feb 20 09:00:11 2000
++++ yacas.sh.in Sun Feb 20 09:07:01 2000
+@@ -0,0 +1,20 @@
++#!/bin/sh
++
++# save the tty settings
++stty -a | grep "\-extproc" 2>&1 > /dev/null
++if [ $? = 0 ]; then
++ OLD=-extproc
++else
++ OLD=extproc
++fi
++#OLD=`stty -g`
++
++# make sure one critical tty setting is correct
++stty -extproc
++
++# run yacas
++@prefix@/bin/yacas $*
++
++# restore the tty setting
++stty $OLD
++
diff --git a/math/yacas/pkg/COMMENT b/math/yacas/pkg/COMMENT
new file mode 100644
index 00000000000..c469d7f3c92
--- /dev/null
+++ b/math/yacas/pkg/COMMENT
@@ -0,0 +1 @@
+Yet Another Computer Algebra System
diff --git a/math/yacas/pkg/DESCR b/math/yacas/pkg/DESCR
new file mode 100644
index 00000000000..8af5f760672
--- /dev/null
+++ b/math/yacas/pkg/DESCR
@@ -0,0 +1,21 @@
+Yacas (Yet Another Computer Algebra System) is a small and highly flexible
+computer algebra language. The syntax uses a infix-operator grammar
+parser. The distribution contains a small library of mathematical functions,
+but its real strength is in the language in which you can easily write your
+own symbolic manipulation algorithms. It supports arbitrary precision
+arithmetic.
+
+The current version is 1.0.28 (the first release was 1.0.0). The language is
+very much in a finished state. Any code written for it should be usable in
+future versions. Also, the language should prove very easy to learn.
+
+Yacas is written in very clean c++ code, and is very portable . It can compile
+stand-alone, and is easily embeddable. Yacas contains a native arbitrary
+precision arithmetic module, but can also be used with GMP.
+
+Things implemented include: arbitrary precision, rational numeric, vector,
+complex, and matrix computations (including inverses and determinants and
+solving matrix equations), derivatives, solving, Taylor series, numerical
+solving (Newtons method), and a lot more non-mathematical algorithms. The
+language natively supports variables and user-defined functions. There is
+basic support for polynomials.
diff --git a/math/yacas/pkg/MESSAGE b/math/yacas/pkg/MESSAGE
new file mode 100644
index 00000000000..611744b12f4
--- /dev/null
+++ b/math/yacas/pkg/MESSAGE
@@ -0,0 +1,4 @@
+Note: For proper operation, your terminal setting must have "-extproc"
+ set. This can be checked with "stty -a". Alternatively, you can run
+ the script "yacas.sh" instead of directly running the binary program
+ "yacas".
diff --git a/math/yacas/pkg/PLIST b/math/yacas/pkg/PLIST
new file mode 100644
index 00000000000..dccf5c4e79d
--- /dev/null
+++ b/math/yacas/pkg/PLIST
@@ -0,0 +1,101 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/02/20 14:40:34 dmcmahill Exp $
+bin/yacas
+bin/yacas.sh
+share/yacas/array
+share/yacas/array.def
+share/yacas/assoc
+share/yacas/assoc.def
+share/yacas/complex
+share/yacas/complex.def
+share/yacas/constants
+share/yacas/controlflow
+share/yacas/controlflow.def
+share/yacas/deffunc
+share/yacas/deriv
+share/yacas/deriv.def
+share/yacas/documentation/books.html
+share/yacas/documentation/coding.html
+share/yacas/documentation/codingchapter1.html
+share/yacas/documentation/codingchapter2.html
+share/yacas/documentation/codingchapter3.html
+share/yacas/documentation/codingchapters.html
+share/yacas/documentation/codingmanual.html
+share/yacas/documentation/intro.html
+share/yacas/documentation/introchapter1.html
+share/yacas/documentation/introchapter2.html
+share/yacas/documentation/introchapter3.html
+share/yacas/documentation/introchapter4.html
+share/yacas/documentation/introchapters.html
+share/yacas/documentation/intromanual.html
+share/yacas/documentation/ref.html
+share/yacas/documentation/refchapter1.html
+share/yacas/documentation/refchapter10.html
+share/yacas/documentation/refchapter11.html
+share/yacas/documentation/refchapter12.html
+share/yacas/documentation/refchapter13.html
+share/yacas/documentation/refchapter2.html
+share/yacas/documentation/refchapter3.html
+share/yacas/documentation/refchapter4.html
+share/yacas/documentation/refchapter5.html
+share/yacas/documentation/refchapter6.html
+share/yacas/documentation/refchapter7.html
+share/yacas/documentation/refchapter8.html
+share/yacas/documentation/refchapter9.html
+share/yacas/documentation/refchapters.html
+share/yacas/documentation/refmanual.html
+share/yacas/edit
+share/yacas/edit.def
+share/yacas/example
+share/yacas/example.def
+share/yacas/fakedb
+share/yacas/fakedb.def
+share/yacas/formula
+share/yacas/formula.def
+share/yacas/functional
+share/yacas/functional.def
+share/yacas/glview
+share/yacas/html
+share/yacas/html.def
+share/yacas/integrate
+share/yacas/integrate.def
+share/yacas/linalg
+share/yacas/linalg.def
+share/yacas/lists
+share/yacas/lists.def
+share/yacas/newly
+share/yacas/newly.def
+share/yacas/numbers
+share/yacas/numbers.def
+share/yacas/patterns
+share/yacas/patterns.def
+share/yacas/predicates
+share/yacas/predicates.def
+share/yacas/random
+share/yacas/random.def
+share/yacas/simplify
+share/yacas/simplify.def
+share/yacas/solve
+share/yacas/solve.def
+share/yacas/standard
+share/yacas/stats
+share/yacas/stats.def
+share/yacas/stdfuncs
+share/yacas/stdfuncs.def
+share/yacas/stdopers
+share/yacas/stubs
+share/yacas/stubs.def
+share/yacas/substitute
+share/yacas/substitute.def
+share/yacas/sums
+share/yacas/sums.def
+share/yacas/tools/logserver
+share/yacas/tools/mysqlstubs
+share/yacas/tools/yacasserverthread
+share/yacas/trigsimp
+share/yacas/trigsimp.def
+share/yacas/univar
+share/yacas/univar.def
+share/yacas/yacasinit
+@dirrm share/yacas/documentation
+@dirrm share/yacas/tools
+@dirrm share/yacas