You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
4.9 KiB

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Andreas Enge <>
;;; This file is part of GNU Guix.
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <>.
(define-module (gnu packages maths)
#:use-module (gnu packages)
#:use-module ((guix licenses)
#:renamer (symbol-prefix-proc 'license:))
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module (gnu packages compression)
#:use-module ((gnu packages gettext)
#:renamer (symbol-prefix-proc 'gnu:))
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages readline)
#:use-module (gnu packages xml))
(define-public units
(name "units")
(version "2.02")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnu/units/units-" version
(sha256 (base32
(build-system gnu-build-system)
(synopsis "Conversion between thousands of scales")
"Units is a program for converting measured quantities between units of
measure. It can handle scale changes through adaptive usage of standard
scale prefixes (i.e. micro-, kilo-, etc.). It can also handle nonlinear
conversions such as Fahrenheit to Celcius. Its interpreter is powerful
enough to be used effectively as a scientific calculator.")
(license license:gpl3+)
(home-page "")))
(define-public gsl
(name "gsl")
(version "1.16")
(method url-fetch)
(uri (string-append "mirror://gnu/gsl/gsl-"
version ".tar.gz"))
(build-system gnu-build-system)
`(#:parallel-tests? #f
(lambda* (#:key target system outputs #:allow-other-keys #:rest args)
(let ((configure (assoc-ref %standard-phases 'configure)))
;; disable numerically unstable test on i686, see thread at
(if (string=? (or target system) "i686-linux")
(substitute* "ode-initval2/"
(("TESTS = \\$\\(check_PROGRAMS\\)") "TESTS =")))
(apply configure args)))
(home-page "")
(synopsis "Numerical library for C and C++")
"The GNU Scientific Library is a library for numerical analysis in C
and C++. It includes a wide range of mathematical routines, with over 1000
functions in total. Subject areas covered by the library include:
differential equations, linear algebra, Fast Fourier Transforms and random
(license license:gpl3+)))
(define-public pspp
(name "pspp")
(version "0.8.1")
(method url-fetch)
(uri (string-append "mirror://gnu/pspp/pspp-"
version ".tar.gz"))
(build-system gnu-build-system)
`(("gettext" ,gnu:gettext)
("gsl" ,gsl)
("libxml2" ,libxml2)
("readline" ,readline)
("zlib" ,zlib)))
`(("perl" ,perl)
("pkg-config" ,pkg-config)))
`("--without-cairo" ; FIXME: tests currently fail for lack of font
"--without-gui"))) ; FIXME: package missing dependencies
(home-page "")
(synopsis "Statistical analysis")
"PSPP is a statistical analysis program. It can perform descriptive
statistics, T-tests, linear regression and non-parametric tests. It features
both a graphical interface as well as command-line input. PSPP is designed to
interoperate with Gnumeric, LibreOffice and OpenOffice. Data can be imported
from spreadsheets, text files and database sources and it can be output in
text, Postscript, PDF or HTML.")
(license license:gpl3+)))