27 Commits
Author SHA1 Message Date
rainlance 3ab6729951 Update version and help text 2018-08-05 22:38:42 +02:00
rainlance 9153e78be8 Ignore zip files 2018-08-05 22:33:07 +02:00
rainlance 434d4a72e2 Fix typecast warning 2018-08-05 22:30:44 +02:00
rainlance be4b1e7fd6 Update test target 2018-08-05 21:49:00 +02:00
rainlance 7a3cb4a2a1 Update to version 1.8.4 2018-08-05 21:46:30 +02:00
rainlance b3d4d61e9d Support Visual Studio Code 2018-08-05 21:45:38 +02:00
rainlance 4c6ae02156 Ignore casing in hexadecimal numbers 2018-08-05 21:44:15 +02:00
rainlance 2a7b341c71 Support GCC 7 & C++11 2018-08-05 21:41:11 +02:00
rainlance 1f5cbf5176 Ignore flexcat 2018-08-04 20:45:33 +02:00
rainlance 8503f61eea Updated Copyright headers 2018-08-04 20:44:35 +02:00
rainlance 2e54fed094 Update headers 2017-08-03 22:03:35 +02:00
rainlance f7881bb3c9 Update script 2017-08-03 22:03:20 +02:00
rainlance 350a8d82b9 Add debian build script 2017-08-03 21:25:17 +02:00
rainlance 208a87640d Release 1.8.3 2017-07-21 22:41:58 +02:00
rainlance 73d97e3229 Add more CC BY-SA texts 2017-07-21 22:38:58 +02:00
rainlance 08f5d5d870 Cleanup man page 2017-07-21 22:36:04 +02:00
Carsten Larsen 8bf9f941ed Cleanup help texts 2017-07-21 01:25:08 +02:00
Carsten Larsen e5e70b5247 Include less common abbreviations 2017-07-17 00:29:31 +02:00
Carsten Larsen a6d28448f6 Add known bugs 2017-07-16 23:07:14 +02:00
Carsten Larsen 60df83a113 ANSI mode is alway changeable as default 2017-07-16 22:52:52 +02:00
Carsten Larsen b4f29dc2de Stress with explicit in clang option 2017-07-16 22:49:27 +02:00
Carsten Larsen 1eaf09fa56 Cleanup history 2017-07-14 13:57:32 +02:00
Carsten Larsen 59d69ac760 Fix build error in shared clib 2017-07-14 13:54:39 +02:00
Carsten Larsen 5b6b5cc745 Allow man-dir and doc-dir while configuring 2017-07-14 13:54:07 +02:00
Carsten Larsen d34de7e7b5 Release 1.8.2 2017-07-14 12:10:13 +02:00
Carsten Larsen f06a9a3421 Update project homepage 2017-07-14 11:30:24 +02:00
Carsten Larsen 140e74f3ce Improve endianness detection 2017-07-14 10:53:37 +02:00
421 changed files with 1611 additions and 1112 deletions
+2
View File
@@ -11,7 +11,9 @@ amath
amath-test
catalog/flexcat
catalog/flexcat/flexcat
build/flexcat/flexcat
*_.3
doxygen.warn
*.deb
*.zip
Makefile
+12
View File
@@ -0,0 +1,12 @@
[
{
"key": "ctrl+shift+c",
"command": "workbench.action.tasks.runTask",
"args": "Clean all"
},
{
"key": "ctrl+t",
"command": "workbench.action.tasks.runTask",
"args": "Run tests"
}
]
+27
View File
@@ -0,0 +1,27 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/amath",
"args": ["--shell"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
+19
View File
@@ -0,0 +1,19 @@
{
"cSpell.words": [
"amath",
"carsten",
"innolan",
"sonne"
],
"files.associations": {
"type_traits": "cpp",
"cctype": "cpp",
"cstdarg": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstdint": "cpp",
"exception": "cpp",
"new": "cpp",
"typeinfo": "cpp"
}
}
+51
View File
@@ -0,0 +1,51 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Open shell",
"type": "shell",
"command": "${workspaceFolder}/amath --shell",
"problemMatcher": []
},
{
"label": "Build all",
"command": "make",
"args": [
"all"
],
"options": {
"cwd": "${workspaceRoot}"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "Clean all",
"command": "make",
"args": [
"clean"
],
"options": {
"cwd": "${workspaceRoot}"
},
"problemMatcher": []
},
{
"label": "Run tests",
"type": "shell",
"command": "${workspaceFolder}/amath --test",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}
+12
View File
@@ -1,5 +1,17 @@
amath release history
v1.8.4 August 05 2017
- Ignore casing in hexadecimal numbers.
v1.8.3 July 21 2017
- Updated help texts and man page.
- Fixed bug in ANSI switch.
v1.8.2 July 14 2017
- MIPS support.
- Improved endianness detection.
- Fixed configuration errors.
v1.8.1 April 22 2017
- OpenBSD support.
- Fixed Haiku bug.
+1 -1
View File
@@ -1,5 +1,5 @@
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2007 The NetBSD Foundation, Inc.
Copyright (c) 1990, 1993 The Regents of the University of California.
All rights reserved.
+1 -1
View File
@@ -26,4 +26,4 @@ Show version string:
> amath version
Run regression tests:
> amath test
> amath --test
+1 -1
View File
@@ -29,4 +29,4 @@ Install by copying the desired amath binary to C: or any other appropriate locat
> amath version
Run regression tests:
> amath test
> amath --test
+91 -55
View File
@@ -1,4 +1,4 @@
.\" Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -20,39 +20,27 @@
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.TH amath 1 "Version 1.8.1" "April 22 2017"
.TH amath 1 "Version 1.8.4" "August 05 2018"
.SH NAME
amath \- Simple command line calculator
.SH SYNOPSIS
\fC[ --noansi ] [ --shell | expression ]\fP
\fC[ \fB--noansi\fR ] [ \fB--shell\fR |
.IR expression
]
.SH DESCRIPTION
amath(1) features a case sensitive command line interface, internal
\fBamath\fP features a case sensitive command line interface, internal
IEEE 754 calculations with 15 significant digits, calculations with
real and complex numbers, variables and user defined functions,
logarithmic and exponential functions, trigonometric and hyperbolic
function and selected mathematical constants and rounding functions.
.SH Statements
.nf
clear Clear console window
def Define function
delete Delete variable or function
digits Set number of significant digits
eval Evaluate arithmetic expression
execute Execute statements in a file
functions Show list of user defined functions
input Change numeral input system
help Show basic help text
output Change numeral output system
list Show content of a directory
show Show content of a file
load Load variable and functions from file
save Save variable and functions to file
variables Show list of variables
version Show version string
memory Show internal memory usage
exit Exit program
.fi
.SH Operators
.SH OPTIONS
.TP
.BR \-\-noansi
Disable output of ANSI escape codes. Default is enable.
.TP
.BR \-\-shell
Open an interactive shell.
.SH OPERATORS
.nf
+ Mathematical addition
- Mathematical subtraction
@@ -61,14 +49,15 @@ exit Exit program
^ Mathematical exponentiation
= Assignment of variable values
| Absolute value of number
.SH Variables and constant
.fi
.SH VARIABLES AND CONSTANT
.nf
pi Trigonometric constant
e Euler's number
i Imaginary unit
ins Result of last calculation
.fi
.SH Base functions
.SH MISCELLANEOUS FUNCTIONS
.nf
abs Absolute value of number
sgn Mathematical signum function
@@ -82,7 +71,7 @@ lb Binary logarithm function (base 2)
ln Natural logarithm function (base e)
lg Common logarithm function (base 10)
.fi
.SH Trigonometric functions
.SH TRIGONOMETRIC FUNCTIONS
.nf
sin Trigonometric sine function
cos Trigonometric cosine function
@@ -103,7 +92,7 @@ arccrd Inverse trigonometric chord function
arcexsec Inverse trigonometric exsecant function
arcexcsc Inverse trigonometric excosecant function
.fi
.SH Hyperbolic functions
.SH HYPERBOLIC FUNCTIONS
.nf
sinh Hyperbolic sine function
cosh Hyperbolic cosine function
@@ -118,7 +107,7 @@ arccoth Inverse hyperbolic cotangent function
arcsech Inverse hyperbolic secant function
arccsch Inverse hyperbolic cosecant function
.fi
.SH Early trigonometric functions
.SH EARLY TRIGONOMETRIC FUNCTIONS
.nf
ver Versed sine function
vcs Versed cosine function
@@ -137,7 +126,54 @@ archvc Inverse haversed cosine function
archcv Inverse hacoversed sine function
archcc Inverse hacoversed cosine function
.fi
.SH Example script
.SH STATEMENTS
.nf
about Show about text
clear Clear console window
def Define function
delete Delete variable or function
digits Set number of significant digits
eval Evaluate arithmetic expression
execute Execute statements in a file
functions Show list of user defined functions
input Change numeral input system
help Show basic help text
output Change numeral output system
list Show content of a directory
show Show content of a file
load Load variable and functions from file
save Save variable and functions to file
variables Show list of variables
version Show version string
license Show copyright and license texts
memory Show internal memory usage
exit Exit program
.fi
.SH EXIT STATUS
\fBamath\fP exits 0 on success and >0 if an error occurs.
.SH EXAMPLES
Add two numbers:
.RS
$ amath 1.3 + 2.6
.RE
.PP
Find cosine of pi/2:
.RS
$ amath "cos(pi/2)"
.RE
.PP
Find square root of minus 25:
.RS
$ amath "sqrt(-25)"
.RE
.PP
Show only 5 digits in the result of a division:
.RS
$ amath "digits 5;34/11"
.RE
.PP
Script block with functions:
.RS
.nf
round(1.5461);round(-1.5461);
ceil(43.5461);ceil(-43.5461);
@@ -145,34 +181,34 @@ floor(39.9531);floor(-39.9531);
trunc(23.827);trunc(-23.827);
sqrt(100);sqrt(52.23);
.fi
.SH Example script with functions
.RE
.PP
Script block with user defined functions:
.RS
.nf
f(x)=x*2+1;
g(y)=y^2+y*1.5+2;
a=2;b=3;c=a+b;
vars;funcs;
f(2.2);c+1.1;
.fi
.SH Example script with complex numbers
.nf
cos(1+2i);
sin(1+2i);
tan(1+2i);
coth(1+2i);
sech(1+2i);
csch(1+2i);
.fi
.SH HOMEPAGE
http://amath.innolan.net/
.SH AUTHORS
.PP
Written by Carsten Sonne Larsen <cs@innolan.net>. The code in MemSet and
MemCopy is derived from software contributed to Berkeley by Mike Hibler and
Chris Torek. The code in complex calculations is derived from software
written by Stephen L. Moshier.
.SH COPYRIGHT
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.RE
.SH BUGS
.IP \[bu] 2
If \fBamath\fP is linked with system libraries (-lm) sometimes the real part
of a result of arccosh of a complex number, is negative instead of positive.
.IP \[bu]
coth() with complex numbers is inaccurate on the 14th digit.
.sp
Please report any other bugs that you encounter via:
.br
Copyright (c) 1990, 1993 The Regents of the University of California
\fIhttps://gitlab.com/rnger/amath/issues\fR.
.SH HOMEPAGE
https://amath.innolan.net/
.SH SEE ALSO
amathc(3), amathr(3), amathi(3)
amathc(3), amathr(3), amathi(3)
.SH AUTHORS
Written by Carsten Sonne Larsen <cs@innolan.net>. Floating point to string
conversion is based on software written by Ryan Juckett. The code in complex
calculations is derived from software written by Stephen L. Moshier. The code
in MemSet and MemCopy is derived from software contributed to Berkeley by
Mike Hibler and Chris Torek.
+1 -1
View File
@@ -1,7 +1,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "amath"
PROJECT_NUMBER = "1.8.1"
PROJECT_NUMBER = "1.8.4"
PROJECT_BRIEF = "Simple command line calculator"
PROJECT_LOGO =
OUTPUT_DIRECTORY = ../amath-doc
Executable
+141
View File
@@ -0,0 +1,141 @@
#!/bin/sh
#
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES {INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION}
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT {INCLUDING NEGLIGENCE OR OTHERWISE} ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Project homepage:
# https://amath.innolan.net
#
set -e
version="1.8.4"
build_package () {
rm -Rf amath
rm -f amath-${version}_$1.deb
sh configure CFLAGS=$2
make clean
echo "Building $3 bit package of amath ${version} for Debian ..."
make static
mv amath amath.tmp
# Create filesystem layout
mkdir -m 755 amath
mkdir -m 755 amath/DEBIAN
mkdir -m 755 amath/usr/
mkdir -m 755 amath/usr/bin
mkdir -m 755 amath/usr/share
mkdir -m 755 amath/usr/share/amath
mkdir -m 755 amath/usr/share/man
mkdir -m 755 amath/usr/share/man/man1
mkdir -m 755 amath/usr/share/man/man3
mkdir -m 755 amath/usr/share/doc
mkdir -m 755 amath/usr/share/doc/amath
# Copy binaries
mv amath.tmp amath/usr/bin/amath
chmod 0755 amath/usr/bin/amath
# Copy documentation
cp HISTORY amath/usr/share/doc/amath/changelog
gzip --best -n amath/usr/share/doc/amath/changelog
cp README amath/usr/share/doc/amath/
gzip --best -n amath/usr/share/doc/amath/README
chmod 644 amath/usr/share/doc/amath/*
# Copy man pages
cat amath.1 | sed '/SEE ALSO/,+1 d' > amath/usr/share/man/man1/amath.1
gzip --best -n amath/usr/share/man/man1/amath.1
chmod 644 amath/usr/share/man/man1/*
# Copy scripts
cp script/* amath/usr/share/amath/
chmod 644 amath/usr/share/amath/*
# Create control file
{
echo "Package: amath"
echo "Version: ${version}"
echo "Architecture: $1"
echo "Maintainer: Carsten Sonne Larsen <cs@innolan.net>"
echo "Installed-Size: $4"
echo "Depends: libc6"
echo "Section: math"
echo "Priority: optional"
echo "Homepage: https://amath.innolan.net"
echo "Built-Using: gcc-7.3"
echo "Description: Simple command line calculator"
echo " Features a case sensitive command line interface, internal IEEE 754"
echo " calculations with 15 significant digits, calculations with real and"
echo " complex numbers, variables and user defined functions, logarithmic"
echo " and exponential functions, trigonometric and hyperbolic function"
echo " and selected mathematical constants and rounding functions."
} >amath/DEBIAN/control
chmod 0755 amath/DEBIAN/control
# Create copyright file
# Refer to https://www.debian.org/doc/debian-policy/ch-docs.html#s-copyrightfile
{
echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/"
echo "Upstream-Name: amath"
echo "Source: https://amath.innolan.net"
echo
echo "Files: *"
echo "Copyright: 2014-2018 Carsten Sonne Larsen <cs@innolan.net>"
echo " 2007 The NetBSD Foundation, Inc."
echo " 1990, 1993 The Regents of the University of California."
echo "License: BSD-2-Clause"
echo " Redistribution and use in source and binary forms, with or without"
echo " modification, are permitted provided that the following conditions are met:"
echo " ."
echo " Redistributions of source code must retain the above copyright notice, this"
echo " list of conditions and the following disclaimer."
echo " ."
echo " Redistributions in binary form must reproduce the above copyright notice,"
echo " this list of conditions and the following disclaimer in the documentation"
echo " and/or other materials provided with the distribution."
echo " ."
echo " THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\""
echo " AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE"
echo " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE"
echo " DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE"
echo " FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL"
echo " DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR"
echo " SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER"
echo " CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,"
echo " OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE"
echo " OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
} >amath/usr/share/doc/amath/copyright
chmod 644 amath/usr/share/doc/amath/*
fakeroot dpkg-deb --build amath
mv amath.deb amath-${version}_$1.deb
rm -Rf amath
}
build_package 'amd64' '' 64 320
build_package 'i386' '-m32' 32 322
+47 -27
View File
@@ -1,13 +1,44 @@
#!/bin/sh
#
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES {INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION}
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT {INCLUDING NEGLIGENCE OR OTHERWISE} ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Project homepage:
# https://amath.innolan.net
#
# THIS SCRIPT IS NOT READY FOR PRODUCTION !
set -e
version="1.8.1"
version="1.8.4"
build_package () {
rm -Rf amath
rm -f amath-${version}_$1.deb
rm -f amath.deb
rm -f amath-dev-${version}_$1.deb
sh configure CFLAGS=$2
make clean
@@ -29,7 +60,7 @@ mkdir -m 755 amath/usr/share/man
mkdir -m 755 amath/usr/share/man/man1
mkdir -m 755 amath/usr/share/man/man3
mkdir -m 755 amath/usr/share/doc
mkdir -m 755 amath/usr/share/doc/amath
mkdir -m 755 amath/usr/share/doc/amath-dev
# Copy binaries
mv amath.tmp amath/usr/bin/amath
@@ -62,15 +93,16 @@ chmod 644 amath/usr/lib/pkgconfig/*
cp src/amath.h amath/usr/include/amath.h
cp src/amathc.h amath/usr/include/amathc.h
cp src/amatht.h amath/usr/include/amatht.h
cp src/complex.h amath/usr/include/amathi.h
cp src/mathi.h amath/usr/include/amathi.h
cp src/mathr.h amath/usr/include/amathr.h
chmod 644 amath/usr/include/*
# Copy documentation
cp HISTORY amath/usr/share/doc/amath/
gzip --best -n amath/usr/share/doc/amath/HISTORY
cp README amath/usr/share/doc/amath/
gzip --best -n amath/usr/share/doc/amath/README
chmod 644 amath/usr/share/doc/amath/*
cp HISTORY amath/usr/share/doc/amath-dev/changelog
gzip --best -n amath/usr/share/doc/amath-dev/changelog
cp README amath/usr/share/doc/amath-dev/
gzip --best -n amath/usr/share/doc/amath-dev/README
chmod 644 amath/usr/share/doc/amath-dev/*
# Copy man pages
cp amath.1 amath/usr/share/man/man1/amath.1
@@ -94,12 +126,12 @@ chmod 644 amath/usr/share/amath/*
echo "Package: amath-dev"
echo "Version: ${version}"
echo "Architecture: $1"
echo "Maintainer: Carsten Larsen <cs@innolan.net>"
echo "Maintainer: Carsten Sonne Larsen <cs@innolan.net>"
echo "Installed-Size: $4"
echo "Depends: libc6"
echo "Section: math"
echo "Priority: optional"
echo "Homepage: http://amath.innolan.net"
echo "Homepage: https://amath.innolan.net"
echo "Built-Using: gcc-5.4"
echo "Description: Simple command line calculator"
echo " Features a case sensitive command line interface, internal IEEE 754"
@@ -114,10 +146,10 @@ chmod 0755 amath/DEBIAN/control
{
echo "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/"
echo "Upstream-Name: amath-dev"
echo "Source: http://amath.innolan.net"
echo "Source: https://amath.innolan.net"
echo
echo "Files: *"
echo "Copyright: 2014-2017 Carsten Sonne Larsen <cs@innolan.net>"
echo "Copyright: 2014-2018 Carsten Sonne Larsen <cs@innolan.net>"
echo " 2007 The NetBSD Foundation, Inc."
echo " 1990, 1993 The Regents of the University of California."
echo "License: BSD-2-Clause"
@@ -141,20 +173,8 @@ echo " SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVE
echo " CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,"
echo " OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE"
echo " OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
} >amath/DEBIAN/copyright
gzip --best -n amath/DEBIAN/copyright
chmod 0755 amath/DEBIAN/copyright.gz
# Create change log
{
echo "amath (${version}) unstable; urgency=low"
echo
echo " * Initial Debian Release."
echo
echo " -- Carsten Larsen <cs@innolan.net> Sat, 04 Mar 2017 19:49:07 +0100"
} >amath/DEBIAN/changelog.Debian
gzip --best -n amath/DEBIAN/changelog.Debian
chmod 0755 amath/DEBIAN/changelog.Debian.gz
} >amath/usr/share/doc/amath-dev/copyright
chmod 644 amath/usr/share/doc/amath-dev/copyright
{
echo "libamath ${version}"
+6 -4
View File
@@ -1,4 +1,10 @@
#!/bin/sh
#
# This file is public domain
#
# Project homepage:
# https://amath.innolan.net
#
set -e
@@ -61,7 +67,3 @@ date -Ru >dist/build_date
mv dist amath
#lha-ac a amath.lha amath
# GCC 6.x
#./configure --enable-test --cross-compile="/opt/m68k-amigaos6/bin/m68k-amigaos" CFLAGS="-m68000 -noixemul" LDFLAGS="-Xlinker --allow-multiple-definition"
#make static
+9 -4
View File
@@ -1,10 +1,15 @@
#! /bin/sh
#!/bin/sh
#
# This file is public domain
#
# Project homepage:
# https://amath.innolan.net
#
# DO NOT USE THIS SCRIPT UNLESS YOU KNOW WHAT YOU ARE DOING !
version='1.8.1'
stamp="201704220000"
#stamp="201704110000"
version='1.8.4'
stamp="201808050000"
srcdir="amath-rc"
distdir="amath-${version}"
cd ..
+7 -1
View File
@@ -1,8 +1,14 @@
#!/bin/sh
#
# This file is public domain
#
# Project homepage:
# https://amath.innolan.net
#
set -e
version="1.8.1"
version="1.8.4"
echo "Building amath ${version} for Windows ..."
+1 -1
View File
@@ -2,7 +2,7 @@
## language english
## codeset 0
; #############################################################################
; Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
; Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
+23 -19
View File
@@ -31,38 +31,42 @@ No help is available for this function.#NEWLINE#
cbr
No help is available for this function.#NEWLINE#
lb
No help is available for this function.#NEWLINE#
Binary logarithm function.#NEWLINE#
ln
No help is available for this function.#NEWLINE#
Natural logarithm function.#NEWLINE#
lg
No help is available for this function.#NEWLINE#
Common logarithm function.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Sine
sin
Sine is the trigonometric function that for an acute angle is the#NEWLINE#ratio between the leg opposite the angle when it is considered#NEWLINE#part of a right triangle and the hypotenuse.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
cos
Cosine is the trigonometric function that for an acute angle is the#NEWLINE#ratio between the leg adjacent to the angle when it is considered#NEWLINE#part of a right triangle and the hypotenuse#NEWLINE#
Cosine is the trigonometric function that for an acute angle is the#NEWLINE#ratio between the leg adjacent to the angle when it is considered#NEWLINE#part of a right triangle and the hypotenuse.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
tan
Tangent is one of the trigonometry functions. In a right triangle,#NEWLINE#the tangent of an angle is the opposite side over the adjacent side.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
cot
No help is available for this function.#NEWLINE#
The cotangent cot(x), ctg(x) or ctn(x), is the reciprocal of tan(x).#NEWLINE#The cotangent is the ratio of the length of the adjacent side to the length of the opposite side.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
sec
No help is available for this function.#NEWLINE#
The secant sec(x) is the reciprocal of cos(x).#NEWLINE#The secant is the ratio of the length of the hypotenuse to the length of the adjacent side.#NEWLINE#So called because it is the tangent of the complementary or co-angle.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
csc
No help is available for this function.#NEWLINE#
The cosecant csc(x) or cosec(x), is the reciprocal of sin(x).#NEWLINE#The cosecant is the ratio of the length of the hypotenuse to the length of the opposite side.#NEWLINE#So called because it is the secant of the complementary or co-angle.#NEWLINE#
; Partly from https://wikipedia.org/wiki/Trigonometric_functions
asin
No help is available for this function.#NEWLINE#
arc sine function.#NEWLINE#
acos
No help is available for this function.#NEWLINE#
arc cosine function.#NEWLINE#
atan
No help is available for this function.#NEWLINE#
arc tangent function of one variable.#NEWLINE#
acot
No help is available for this function.#NEWLINE#
arc cotangent function.#NEWLINE#
asec
No help is available for this function.#NEWLINE#
arc secant function.#NEWLINE#
acsc
No help is available for this function.#NEWLINE#
arc cosecant function.#NEWLINE#
sinh
No help is available for this function.#NEWLINE#
cosh
@@ -116,14 +120,14 @@ No help is available for this function.#NEWLINE#
ahvc
No help is available for this function.#NEWLINE#
ahcv
No help is available for this function.#NEWLINE#
The inverse hacoversed sine is not implemented in this version of amath.#NEWLINE#
ahcc
No help is available for this function.#NEWLINE#
The inverse hacoversed cosine is not implemented in this version of amath.#NEWLINE#
exsec
No help is available for this function.#NEWLINE#
exsecant function.#NEWLINE#
excsc
No help is available for this function.#NEWLINE#
excosecant function.#NEWLINE#
aexsec
No help is available for this function.#NEWLINE#
inverse exsecant function.#NEWLINE#
aexcsc
No help is available for this function.#NEWLINE#
inverse excosecant function.#NEWLINE#
+6 -2
View File
@@ -1,8 +1,8 @@
## version $VER: amath-text.catalog 1.70 (28.02.2017) English
## version $VER: amath-text.catalog 1.84 (05.08.2018) English
## language english
## codeset 0
; #############################################################################
; Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
; Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
@@ -33,6 +33,8 @@ INTROMSG
#NORMALTEXT##BOLD##STARTMSG##NEWLINE##NORMALTEXT##COLOR02#Type help to show info.#NEWLINE#
STATEMENTLINE
---------------------------------------------------------#NEWLINE#
STATEMENTABOUT
about Show about text#NEWLINE#
STATEMENTCLEAR
clear Clear console window.#NEWLINE#
STATEMENTDEF
@@ -65,6 +67,8 @@ STATEMENTVARS
variables Show list of variables.#NEWLINE#
STATEMENTVERSION
version Show version string.#NEWLINE#
STATEMENTLICENSE
license Show copyright and license texts#NEWLINE#
STATEMENTMEMORY
memory Show internal memory usage.#NEWLINE#
STATEMENTEXIT
Vendored
+15 -6
View File
@@ -1,6 +1,6 @@
#!/bin/sh
#
# Copyright {c} 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
# Copyright {c} 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -27,7 +27,7 @@
set -e
version="1.8.1"
version="1.8.4"
clang=false
debugsym=false
@@ -66,6 +66,15 @@ for arg in "$@"; do
unknown=false
;;
--man-dir=*)
mandir=`echo $arg | sed 's/--mandir=//'`
unknown=false
;;
--doc-dir=*)
unknown=false
;;
--cross-compile=*)
crosscompile=`echo $arg | sed 's/--cross-compile=//'`
crosscompile="${crosscompile}-"
@@ -193,8 +202,8 @@ for arg in "$@"; do
echo ' --disable-debug: do not include debug symbols'
echo ' --enable-test: build code with regression tests'
echo ' --disable-test: do not include regression test'
echo ' --enable-clang: build with clang compiler'
echo ' --disable-clang: do not build with clang compiler'
echo ' --enable-clang: build explicit with clang compiler'
echo ' --disable-clang: do not explicit build with clang compiler'
echo ' --enable-ldconfig: use ldconfig to registre libraries'
echo ' --disable-ldconfig: do not use ldconfig to registre libraries'
echo ' --enable-pic: build with Position Independent Code (-fPIC)'
@@ -872,7 +881,7 @@ echo " \${MKDIR} static"
echo " \${MKDIR} shared"
echo
echo "\${solib}: build ${libcs}"
echo " \${CC} \${CFLAGS} -shared ${exestrip} -fPIC -Wl,-soname,\${solib}${soverion} -o \${solib} ${libcs} ${libc}"
echo " \${CC} \${CFLAGS} -shared ${exestrip} -fPIC -Wl,-soname,\${solib}${soverion} -o \${solib} ${libcs}"
echo
echo "\${alib}: build ${libc}"
echo " \${AR} rcs static/\${alib} ${libc}"
@@ -1210,7 +1219,7 @@ echo
echo ".PHONY: test"
echo "test: amath"
echo " LD_LIBRARY_PATH=src/clib/:src/lib:src/cplex:scr/real"
echo " ./amath test"
echo " ./amath --test"
echo
echo ".PHONY: install"
echo "install:"
+6 -6
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -281,10 +281,10 @@ typedef int bool;
#endif
/******************************************************************************/
#define TXTARCH TXTCPU TXTFPU
#define RELDATESTAMP "(22-04-2017)"
#define TXTDOSVERSION "\0$VER: amath 1.81" SPACE RELDATESTAMP SPACE TXTARCH
#define TXTTITLE "amath version 1.8.1"
#define TXTCOPYRIGHT "(c) 2017 Carsten Sonne Larsen"
#define RELDATESTAMP "(05-08-2018)"
#define TXTDOSVERSION "\0$VER: amath 1.84" SPACE RELDATESTAMP SPACE TXTARCH
#define TXTTITLE "amath version 1.8.4"
#define TXTCOPYRIGHT "(c) 2018 Carsten Sonne Larsen"
#define TXTSTARTMSG TXTTITLE SPACE TXTCOPYRIGHT
/******************************************************************************/
#define TXTVERSMSG TXTTITLE SPACE RELDATESTAMP SPACE TXTARCH
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+4 -4
View File
@@ -1,4 +1,4 @@
.\" Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -20,7 +20,7 @@
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.TH "amathc.h" 3 "Version 1.8.1" "April 22 2017"
.TH "amathc.h" 3 "Version 1.8.4" "August 05 2018"
.SH NAME
amathc.h \- C functions for manipulating strings and memory
.SH SYNOPSIS
@@ -472,14 +472,14 @@ Definition at line 32 of file untag\&.c\&.
82 }
.fi
.SH HOMEPAGE
http://amath.innolan.net/
https://amath.innolan.net/
.SH AUTHORS
.PP
Written by Carsten Sonne Larsen <cs@innolan.net>. The code in MemSet and
MemCopy is derived from software contributed to Berkeley by Mike Hibler and
Chris Torek.
.SH COPYRIGHT
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.br
Copyright (c) 2007 The NetBSD Foundation, Inc.
.br
+1 -1
View File
@@ -1,7 +1,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "amathc"
PROJECT_NUMBER = "1.8.1"
PROJECT_NUMBER = "1.8.4"
PROJECT_BRIEF = "C functions for manipulating strings and memory"
PROJECT_LOGO =
OUTPUT_DIRECTORY =
+1 -1
View File
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/lib
Name: amath C library
Description: C functions for manipulating strings and memory
Version: 1.8.1
Version: 1.8.4
Cflags: -I${includedir}
Libs: -L${libdir} -lamathc
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 1990, 1993 The Regents of the University of California.
* All rights reserved.
*
@@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 1990, 1993 The Regents of the University of California.
* All rights reserved.
*
@@ -27,7 +27,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+4 -4
View File
@@ -1,4 +1,4 @@
.\" Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
.\" Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -20,7 +20,7 @@
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.TH "mathi.h" 3 "Version 1.8.1" "April 22 2017"
.TH "mathi.h" 3 "Version 1.8.4" "August 05 2018"
.SH NAME
mathi.h \- Complex numbers math library
.SH SYNOPSIS
@@ -1739,13 +1739,13 @@ Definition at line 85 of file prim\&.c\&.
90 }
.fi
.SH HOMEPAGE
http://amath.innolan.net/
https://amath.innolan.net/
.SH AUTHORS
.PP
Written by Carsten Sonne Larsen <cs@innolan.net>. Some code in the
library is derived from software written by Stephen L. Moshier.
.SH COPYRIGHT
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
.br
Copyright (c) 2007 The NetBSD Foundation, Inc.
.SH "See also"
+1 -1
View File
@@ -1,7 +1,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "amathi"
PROJECT_NUMBER = "1.8.1"
PROJECT_NUMBER = "1.8.4"
PROJECT_BRIEF = "Complex numbers math library"
PROJECT_LOGO =
OUTPUT_DIRECTORY =
+1 -1
View File
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/lib
Name: amath complex library
Description: Complex numbers math library
Version: 1.8.1
Version: 1.8.4
Cflags: -I${includedir}
Libs: -L${libdir} -lamathi
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -27,7 +27,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/ccos.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/ccosh.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/cexp.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/clog.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/cpow.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/csin.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/csinh.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/csqrt.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/ctan.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2007 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -30,7 +30,7 @@
* http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libm/complex/ctanh.c?rev=1.1
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+1 -1
View File
@@ -5,6 +5,6 @@ libdir=${exec_prefix}/lib
Name: amath application library
Description: C++ library for handling numbers
Version: 1.8.1
Version: 1.8.4
Cflags: -I${includedir}
Libs: -L${libdir} -lamathapp -lamathr -lamathi -lamathc
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+121 -39
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -40,18 +40,28 @@
PositionalNumeralSystem::PositionalNumeralSystem(
unsigned int base,
unsigned int digits,
const char fractionPoint) : base(base * 1.0), digits(digits)
const char fractionPoint) : digits(digits)
{
this->fractionPoint = fractionPoint;
this->baseInteger = base;
this->baseDouble = base * 1.0;
this->maxNumeric = (base > 10 ? 10 : base) + '0' - 1;
this->maxAlphaLower = base > 10 ? base + 'a' - 11 : 0;
this->maxAlphaUpper = base > 10 ? base + 'A' - 11 : 0;
}
PositionalNumeralSystem::~PositionalNumeralSystem()
{
}
bool PositionalNumeralSystem::IsDigit(char *digit)
{
return true;
}
const char *PositionalNumeralSystem::GetName()
{
switch (static_cast<int>(base))
switch (baseInteger)
{
case 2:
return "binary";
@@ -64,7 +74,7 @@ const char *PositionalNumeralSystem::GetName()
}
const char *text = "base ";
Number *n = new RealNumber(base);
Number *n = new RealNumber(baseInteger);
NumeralSystem *ns = new DecimalSystem(2);
const char *numtext = ns->GetText(n);
@@ -211,21 +221,21 @@ const char *PositionalNumeralSystem::GetText(double number) const
dnumber = -dnumber;
}
double expbor = log2p(base, dnumber);
double expbor = log2p(baseDouble, dnumber);
double expacc = expbor > 0.0 ? 4e-14 : -1e-15;
double expborder = trunc(expbor + expacc);
int exponent = 0;
double rounding;
double bordermax = trunc(9.0 * 10 / base);
double bordermin = trunc(-8.0 * 10 / base);
double bordermax = trunc(9.0 * 10 / baseDouble);
double bordermin = trunc(-8.0 * 10 / baseDouble);
// Find exponent
if (expborder >= bordermax || expborder <= bordermin)
{
double dexp = trunc(log2p(base, dnumber) + expacc);
dnumber = dnumber * pow(base, -dexp);
double dexp = trunc(log2p(baseDouble, dnumber) + expacc);
dnumber = dnumber * pow(baseDouble, -dexp);
// pow is inaccurate on small and large numbers
if (dexp > 15 || dexp < -15)
@@ -237,7 +247,7 @@ const char *PositionalNumeralSystem::GetText(double number) const
if (dnumber < 1.0)
{
dexp--;
dnumber *= base;
dnumber *= baseDouble;
}
exponent = static_cast<int>(dexp);
@@ -246,7 +256,7 @@ const char *PositionalNumeralSystem::GetText(double number) const
else
{
double acc = exponent > 0 ? 15 : -15;
rounding = pow(base, exponent + acc);
rounding = pow(baseDouble, exponent + acc);
}
int digitout;
@@ -260,8 +270,8 @@ const char *PositionalNumeralSystem::GetText(double number) const
{
buf->Append(fractionPoint);
double fraction = fabs(round((dnumber - intvalue) * pow(base, fragdigits)));
double temp1 = log2p(base, fraction);
double fraction = fabs(round((dnumber - intvalue) * pow(baseDouble, fragdigits)));
double temp1 = log2p(baseDouble, fraction);
FloatUnion64 temp2;
temp2.floatingPoint = temp1;
bool fin = !temp2.IsInf();
@@ -274,7 +284,7 @@ const char *PositionalNumeralSystem::GetText(double number) const
buf->Append('0');
}
intvalue = static_cast<int64_t>(trunc(fraction * base) / base);
intvalue = static_cast<int64_t>(trunc(fraction * baseDouble) / baseDouble);
IntegerToBuffer(intvalue, fragdigits, &digitout);
// Remove trailing zeros
@@ -313,9 +323,9 @@ void PositionalNumeralSystem::IntegerToBuffer(double value, unsigned int digits,
do
{
count++;
unsigned int intremainder = static_cast<unsigned int>(trunc(fmod(value, base)));
unsigned int intremainder = static_cast<unsigned int>(trunc(fmod(value, baseDouble)));
*chars++ = alphaNumerics[intremainder];
value /= base;
value /= baseDouble;
} while (value >= 1.0);
unsigned int n = count;
@@ -339,50 +349,99 @@ void PositionalNumeralSystem::IntegerToBuffer(double value, unsigned int digits,
Number *PositionalNumeralSystem::Parse(const char *text, unsigned int *length, char **end)
{
unsigned int intbase = static_cast<unsigned int>(base);
char maxNumeric = (intbase > 10 ? 10 : intbase) + '0' - 1;
char maxAlpha = intbase > 10 ? intbase + 'A' - 11 : 0;
unsigned int pos = 0;
double integer = 0;
double addition;
bool done = false;
while (*text != '\0' && ((*text >= '0' && *text <= maxNumeric) || (maxAlpha != 0 && *text >= 'A' && *text <= maxAlpha)))
// Parse integer part of number
do
{
addition = ((*text >= '0' && *text <= maxNumeric) ? (*text - '0') : (*text - 'A' + 10)) * 1.0;
integer = integer * base + addition;
double addition;
if (*text == '\0')
{
done = true;
continue;
}
if (*text >= '0' && *text <= maxNumeric)
{
addition = (*text - '0') * 1.0;
}
else if (maxAlphaUpper != 0 && *text >= 'A' && *text <= maxAlphaUpper)
{
addition = (*text - 'A' + 10) * 1.0;
}
else if (maxAlphaLower != 0 && *text >= 'a' && *text <= maxAlphaLower)
{
addition = (*text - 'a' + 10) * 1.0;
}
else
{
done = true;
continue;
}
integer = integer * baseDouble + addition;
text++;
pos++;
}
} while (!done);
// Digits not found
if (pos == 0)
{
*length = 0;
*end = const_cast<char*>(text);
*end = const_cast<char *>(text);
return new RealNumber();
}
// Parse fraction part of number
double fraction = 0.0;
double divisor = 1.0;
if (*text == fractionPoint && fractionPoint != '\0')
{
done = false;
double addition;
text++;
pos++;
while (*text != '\0' && ((*text >= '0' && *text <= maxNumeric) || (maxAlpha != '\0' && *text >= 'A' && *text <= maxAlpha)))
do
{
addition = ((*text >= '0' && *text <= maxNumeric) ? (*text - '0') : (*text - 'A' + 10));
fraction = fraction * base + addition;
divisor *= base;
if (*text == '\0')
{
done = true;
continue;
}
if (*text >= '0' && *text <= maxNumeric)
{
addition = (*text - '0') * 1.0;
}
else if (maxAlphaUpper != 0 && *text >= 'A' && *text <= maxAlphaUpper)
{
addition = (*text - 'A' + 10) * 1.0;
}
else if (maxAlphaLower != 0 && *text >= 'a' && *text <= maxAlphaLower)
{
addition = (*text - 'a' + 10) * 1.0;
}
else
{
done = true;
continue;
}
fraction = fraction * baseDouble + addition;
divisor *= baseDouble;
text++;
pos++;
}
} while (!done);
}
// Parse exponent part of number
double exp = 0.0;
if (*text == 'e' || *text == 'E')
{
double addition;
text++;
pos++;
@@ -390,17 +449,40 @@ Number *PositionalNumeralSystem::Parse(const char *text, unsigned int *length, c
if (sign != 0.0)
{
done = false;
text++;
pos++;
while (*text != '\0' && ((*text >= '0' && *text <= maxNumeric) || (maxAlpha != 0 && *text >= 'A' && *text <= maxAlpha)))
do
{
addition = ((*text >= '0' && *text <= maxNumeric) ? (*text - '0') : (*text - 'A' + 10)) * 1.0;
exp = exp * base + addition;
if (*text == '\0')
{
done = true;
continue;
}
if (*text >= '0' && *text <= maxNumeric)
{
addition = (*text - '0') * 1.0;
}
else if (maxAlphaUpper != 0 && *text >= 'A' && *text <= maxAlphaUpper)
{
addition = (*text - 'A' + 10) * 1.0;
}
else if (maxAlphaLower != 0 && *text >= 'a' && *text <= maxAlphaLower)
{
addition = (*text - 'a' + 10) * 1.0;
}
else
{
done = true;
continue;
}
exp = exp * baseDouble + addition;
text++;
pos++;
}
} while (!done);
exp *= sign;
}
else
@@ -411,14 +493,14 @@ Number *PositionalNumeralSystem::Parse(const char *text, unsigned int *length, c
}
*length = pos;
*end = const_cast<char*>(text);
*end = const_cast<char *>(text);
double dnumber = (integer + (fraction / divisor));
if (exp != 0.0)
{
// pow seems a bit off
dnumber *= pow(base, exp + 4e-15);
dnumber *= pow(baseDouble, exp + 4e-15);
}
return new RealNumber(dnumber);
+9 -3
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -57,12 +57,18 @@ protected:
const char* GetSpecialCase(Number *number);
void IntegerToBuffer(double value, unsigned int digits, int* outdigits) const;
double base;
double baseDouble;
unsigned int digits;
char fractionPoint;
private:
const char* GetText(double number) const;
bool IsDigit(char *digit);
unsigned int baseInteger;
char maxNumeric;
char maxAlphaLower;
char maxAlphaUpper;
};
#endif
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+3 -3
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -53,7 +53,7 @@ struct helptextdef
};
static const helptextdef helptexts[] = {
{ 0, symzero, "Enter command or expression to evaluate.#NEWLINE##SYNTAXHIGHLIGHT#Example: 2+3-cos(3)#NORMALTEXT##NEWLINE# #NEWLINE#More help is available for designated topics.#NEWLINE#----------------------------------------------------#NEWLINE#functions Base functions#NEWLINE#trigon Trigonometric functions#NEWLINE#hyper Hyperbolic functions#NEWLINE#early Early trigonometric functions#NEWLINE#complex Syntax for complex numbers#NEWLINE#statements Available statements#NEWLINE#operators Supported operators#NEWLINE#----------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: help trigon#NEWLINE#" },
{ 0, symzero, "Enter command or expression to evaluate.#NEWLINE##SYNTAXHIGHLIGHT#Example: 2+3-cos(3)#NORMALTEXT##NEWLINE# #NEWLINE#More help is available for designated topics.#NEWLINE#----------------------------------------------------#NEWLINE#functions Miscellaneous functions#NEWLINE#trigon Trigonometric functions#NEWLINE#hyper Hyperbolic functions#NEWLINE#early Early trigonometric functions#NEWLINE#complex Syntax for complex numbers#NEWLINE#statements Available statements#NEWLINE#operators Supported operators#NEWLINE#----------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: help trigon#NEWLINE#" },
{ 1, symoperator, "----------------------------------------------------#NEWLINE# + Mathematical addition#NEWLINE# - Mathematical subtraction#NEWLINE# * Mathematical multiplication#NEWLINE# / Mathematical division#NEWLINE# ^ Mathematical exponentiation#NEWLINE# = Assignment of variable values#NEWLINE# | Absolute value of number#NEWLINE#----------------------------------------------------#NEWLINE#" },
{ 2, symfunction, "----------------------------------------------------#NEWLINE#abs Absolute value of number#NEWLINE#sgn Mathematical signum function#NEWLINE#round Round to nearest integer number#NEWLINE#trunc Discard fraction part of number#NEWLINE#floor Mathematical floor function#NEWLINE#ceil Mathematical ceiling function#NEWLINE#sqrt Square root function (exp 1/2)#NEWLINE#cbrt Cube root function (exp 1/3)#NEWLINE#lb Binary logarithm function (base 2)#NEWLINE#ln Natural logarithm function (base e)#NEWLINE#lg Common logarithm function (base 10)#NEWLINE#----------------------------------------------------#NEWLINE##SYNTAXHIGHLIGHT#Example: round(1.55)#NORMALTEXT##NEWLINE#" },
{ 3, symtrigon, "----------------------------------------------------#NEWLINE#sin Trigonometric sine function#NEWLINE#cos Trigonometric cosine function#NEWLINE#tan Trigonometric tangent function#NEWLINE#cot Trigonometric cotangent function#NEWLINE#sec Trigonometric secant function#NEWLINE#csc Trigonometric cosecant function#NEWLINE#crd Trigonometric chord function#NEWLINE#exsec Trigonometric exsecant function#NEWLINE#excsc Trigonometric excosecant function#NEWLINE#asin Inverse trigonometric sine function#NEWLINE#acos Inverse trigonometric cosine function#NEWLINE#atan Inverse trigonometric tangent function#NEWLINE#acot Inverse trigonometric cotangent function#NEWLINE#asec Inverse trigonometric secant function#NEWLINE#acsc Inverse trigonometric cosecant function#NEWLINE#acrd Inverse trigonometric chord function#NEWLINE#aexsec Inverse trigonometric exsecant function#NEWLINE#aexcsc Inverse trigonometric excosecant function#NEWLINE#----------------------------------------------------#NEWLINE#Inverse functions can be prefixed with ar or arc#NEWLINE#instead of a.#NEWLINE#" },
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+110 -106
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -26,7 +26,7 @@
* http://sourceforge.net/projects/flexcat/
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -46,114 +46,118 @@
#define INTROMSG (Program->Language->GetText(0))
#define STATEMENTLINE (Program->Language->GetText(1))
#define STATEMENTCLEAR (Program->Language->GetText(2))
#define STATEMENTDEF (Program->Language->GetText(3))
#define STATEMENTDELETE (Program->Language->GetText(4))
#define STATEMENTDIGITS (Program->Language->GetText(5))
#define STATEMENTEVAL (Program->Language->GetText(6))
#define STATEMENTEXECUTE (Program->Language->GetText(7))
#define STATEMENTFUNCS (Program->Language->GetText(8))
#define STATEMENTINPUT (Program->Language->GetText(9))
#define STATEMENTHELP (Program->Language->GetText(10))
#define STATEMENTOUTPUT (Program->Language->GetText(11))
#define STATEMENTLIST (Program->Language->GetText(12))
#define STATEMENTSHOW (Program->Language->GetText(13))
#define STATEMENTLOAD (Program->Language->GetText(14))
#define STATEMENTSAVE (Program->Language->GetText(15))
#define STATEMENTVARS (Program->Language->GetText(16))
#define STATEMENTVERSION (Program->Language->GetText(17))
#define STATEMENTMEMORY (Program->Language->GetText(18))
#define STATEMENTEXIT (Program->Language->GetText(19))
#define STATEMENTFOOTER (Program->Language->GetText(20))
#define TXTLISTDIRHEADER (Program->Language->GetText(21))
#define TXTLISTDIRTFILE (Program->Language->GetText(22))
#define TXTLISTDIRTDIR (Program->Language->GetText(23))
#define TXTLISTDIRTUNKNOWN (Program->Language->GetText(24))
#define TXTMEMBLOCKS (Program->Language->GetText(25))
#define TXTMEMSIZE (Program->Language->GetText(26))
#define TXTMEMMAXSIZE (Program->Language->GetText(27))
#define HELPNOHELP (Program->Language->GetText(28))
#define HELPSYNTAX (Program->Language->GetText(29))
#define HELPUERROR (Program->Language->GetText(30))
#define HELPVARNDEF (Program->Language->GetText(31))
#define HELPFUNNDEF (Program->Language->GetText(32))
#define HELPFUNRDEF (Program->Language->GetText(33))
#define HELPPNUMERA (Program->Language->GetText(34))
#define HELPPDIGITS (Program->Language->GetText(35))
#define HELPINPUSHOW (Program->Language->GetText(36))
#define HELPOUTPSHOW (Program->Language->GetText(37))
#define HELPINPUSETT (Program->Language->GetText(38))
#define HELPOUTPSETT (Program->Language->GetText(39))
#define HELPDIGISETT (Program->Language->GetText(40))
#define HELPDIGISHOW (Program->Language->GetText(41))
#define HELPVARSNDEF (Program->Language->GetText(42))
#define HELPFUNCNDEF (Program->Language->GetText(43))
#define HELPLOADSUCC (Program->Language->GetText(44))
#define HELPSAVESUCC (Program->Language->GetText(45))
#define HELPSAVEFAIL (Program->Language->GetText(46))
#define HELPSAVENOTH (Program->Language->GetText(47))
#define HELPPREFLOAD (Program->Language->GetText(48))
#define HELPPREFNOLO (Program->Language->GetText(49))
#define HELPPREFSAVE (Program->Language->GetText(50))
#define HELPPREFNOSA (Program->Language->GetText(51))
#define MSGNODIR (Program->Language->GetText(52))
#define MSGNOFILE (Program->Language->GetText(53))
#define STATEMENTABOUT (Program->Language->GetText(2))
#define STATEMENTCLEAR (Program->Language->GetText(3))
#define STATEMENTDEF (Program->Language->GetText(4))
#define STATEMENTDELETE (Program->Language->GetText(5))
#define STATEMENTDIGITS (Program->Language->GetText(6))
#define STATEMENTEVAL (Program->Language->GetText(7))
#define STATEMENTEXECUTE (Program->Language->GetText(8))
#define STATEMENTFUNCS (Program->Language->GetText(9))
#define STATEMENTINPUT (Program->Language->GetText(10))
#define STATEMENTHELP (Program->Language->GetText(11))
#define STATEMENTOUTPUT (Program->Language->GetText(12))
#define STATEMENTLIST (Program->Language->GetText(13))
#define STATEMENTSHOW (Program->Language->GetText(14))
#define STATEMENTLOAD (Program->Language->GetText(15))
#define STATEMENTSAVE (Program->Language->GetText(16))
#define STATEMENTVARS (Program->Language->GetText(17))
#define STATEMENTVERSION (Program->Language->GetText(18))
#define STATEMENTLICENSE (Program->Language->GetText(19))
#define STATEMENTMEMORY (Program->Language->GetText(20))
#define STATEMENTEXIT (Program->Language->GetText(21))
#define STATEMENTFOOTER (Program->Language->GetText(22))
#define TXTLISTDIRHEADER (Program->Language->GetText(23))
#define TXTLISTDIRTFILE (Program->Language->GetText(24))
#define TXTLISTDIRTDIR (Program->Language->GetText(25))
#define TXTLISTDIRTUNKNOWN (Program->Language->GetText(26))
#define TXTMEMBLOCKS (Program->Language->GetText(27))
#define TXTMEMSIZE (Program->Language->GetText(28))
#define TXTMEMMAXSIZE (Program->Language->GetText(29))
#define HELPNOHELP (Program->Language->GetText(30))
#define HELPSYNTAX (Program->Language->GetText(31))
#define HELPUERROR (Program->Language->GetText(32))
#define HELPVARNDEF (Program->Language->GetText(33))
#define HELPFUNNDEF (Program->Language->GetText(34))
#define HELPFUNRDEF (Program->Language->GetText(35))
#define HELPPNUMERA (Program->Language->GetText(36))
#define HELPPDIGITS (Program->Language->GetText(37))
#define HELPINPUSHOW (Program->Language->GetText(38))
#define HELPOUTPSHOW (Program->Language->GetText(39))
#define HELPINPUSETT (Program->Language->GetText(40))
#define HELPOUTPSETT (Program->Language->GetText(41))
#define HELPDIGISETT (Program->Language->GetText(42))
#define HELPDIGISHOW (Program->Language->GetText(43))
#define HELPVARSNDEF (Program->Language->GetText(44))
#define HELPFUNCNDEF (Program->Language->GetText(45))
#define HELPLOADSUCC (Program->Language->GetText(46))
#define HELPSAVESUCC (Program->Language->GetText(47))
#define HELPSAVEFAIL (Program->Language->GetText(48))
#define HELPSAVENOTH (Program->Language->GetText(49))
#define HELPPREFLOAD (Program->Language->GetText(50))
#define HELPPREFNOLO (Program->Language->GetText(51))
#define HELPPREFSAVE (Program->Language->GetText(52))
#define HELPPREFNOSA (Program->Language->GetText(53))
#define MSGNODIR (Program->Language->GetText(54))
#define MSGNOFILE (Program->Language->GetText(55))
static const textdef textdefs[] = {
{ 0, "#NORMALTEXT##BOLD##STARTMSG##NEWLINE##NORMALTEXT##COLOR02#Type help to show info.#NEWLINE#" }, /* INTROMSG */
{ 1, "------------------------------------------------------------#NEWLINE#" }, /* STATEMENTLINE */
{ 2, "clear Clear console window#NEWLINE#" }, /* STATEMENTCLEAR */
{ 3, "def Define function#NEWLINE#" }, /* STATEMENTDEF */
{ 4, "delete Delete variable or function#NEWLINE#" }, /* STATEMENTDELETE */
{ 5, "digits Set number of significant digits#NEWLINE#" }, /* STATEMENTDIGITS */
{ 6, "eval Evaluate arithmetic expression#NEWLINE#" }, /* STATEMENTEVAL */
{ 7, "execute Execute statements in a file#NEWLINE#" }, /* STATEMENTEXECUTE */
{ 8, "functions Show list of user defined functions#NEWLINE#" }, /* STATEMENTFUNCS */
{ 9, "input Change numeral input system#NEWLINE#" }, /* STATEMENTINPUT */
{ 10, "help Show basic help text#NEWLINE#" }, /* STATEMENTHELP */
{ 11, "output Change numeral output system#NEWLINE#" }, /* STATEMENTOUTPUT */
{ 12, "list Show content of a directory#NEWLINE#" }, /* STATEMENTLIST */
{ 13, "show Show content of a file#NEWLINE#" }, /* STATEMENTSHOW */
{ 14, "load Load variable and functions from file#NEWLINE#" }, /* STATEMENTLOAD */
{ 15, "save Save variable and functions to file#NEWLINE#" }, /* STATEMENTSAVE */
{ 16, "variables Show list of variables#NEWLINE#" }, /* STATEMENTVARS */
{ 17, "version Show version string#NEWLINE#" }, /* STATEMENTVERSION */
{ 18, "memory Show internal memory usage#NEWLINE#" }, /* STATEMENTMEMORY */
{ 19, "exit Exit program#NEWLINE#" }, /* STATEMENTEXIT */
{ 20, "The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE#" }, /* STATEMENTFOOTER */
{ 21, "Type Name#NEWLINE#--------------------------------------------------#NEWLINE#" }, /* TXTLISTDIRHEADER */
{ 22, "[file]" }, /* TXTLISTDIRTFILE */
{ 23, "[dir]" }, /* TXTLISTDIRTDIR */
{ 24, "[unknown]" }, /* TXTLISTDIRTUNKNOWN */
{ 25, "Allocated blocks:#SPACE#" }, /* TXTMEMBLOCKS */
{ 26, "Memory usage: #SPACE#" }, /* TXTMEMSIZE */
{ 27, "Maximum usage: #SPACE#" }, /* TXTMEMMAXSIZE */
{ 28, "No help is available for this topic.#NEWLINE#" }, /* HELPNOHELP */
{ 29, "Syntax error:#SPACE#" }, /* HELPSYNTAX */
{ 30, "Unexpected error:#SPACE#" }, /* HELPUERROR */
{ 31, "Variable is not defined:#SPACE#" }, /* HELPVARNDEF */
{ 32, "Function is not defined:#SPACE#" }, /* HELPFUNNDEF */
{ 33, "Function cannot be redefined:#SPACE#" }, /* HELPFUNRDEF */
{ 34, "Base value must be between 2 and 32:#SPACE#" }, /* HELPPNUMERA */
{ 35, "Number of digist must be between 0 and 15:#SPACE#" }, /* HELPPDIGITS */
{ 36, "Numeral input system is#SPACE#" }, /* HELPINPUSHOW */
{ 37, "Numeral output system is#SPACE#" }, /* HELPOUTPSHOW */
{ 38, "Input changed to#SPACE#" }, /* HELPINPUSETT */
{ 39, "Output changed to#SPACE#" }, /* HELPOUTPSETT */
{ 40, "Number of digits changed to#SPACE#" }, /* HELPDIGISETT */
{ 41, "Number of digits shown are#SPACE#" }, /* HELPDIGISHOW */
{ 42, "No variables are defined.#NEWLINE#" }, /* HELPVARSNDEF */
{ 43, "No functions are defined.#NEWLINE#" }, /* HELPFUNCNDEF */
{ 44, "Variable and functions loaded from file.#NEWLINE#" }, /* HELPLOADSUCC */
{ 45, "Variable and functions saved to file.#NEWLINE#" }, /* HELPSAVESUCC */
{ 46, "Cannot save to file.#NEWLINE#" }, /* HELPSAVEFAIL */
{ 47, "Nothing to save.#NEWLINE#" }, /* HELPSAVENOTH */
{ 48, "Preferences loaded.#NEWLINE#" }, /* HELPPREFLOAD */
{ 49, "Preferences could not be loaded.#NEWLINE#" }, /* HELPPREFNOLO */
{ 50, "Preferences saved to disk.#NEWLINE#" }, /* HELPPREFSAVE */
{ 51, "Preferences could not be saved.#NEWLINE#" }, /* HELPPREFNOSA */
{ 52, "Could not open directory:#SPACE#" }, /* MSGNODIR */
{ 53, "Cannot open file.#NEWLINE#" }, /* MSGNOFILE */
{ 2, "about Show about text#NEWLINE#" }, /* STATEMENTABOUT */
{ 3, "clear Clear console window#NEWLINE#" }, /* STATEMENTCLEAR */
{ 4, "def Define function#NEWLINE#" }, /* STATEMENTDEF */
{ 5, "delete Delete variable or function#NEWLINE#" }, /* STATEMENTDELETE */
{ 6, "digits Set number of significant digits#NEWLINE#" }, /* STATEMENTDIGITS */
{ 7, "eval Evaluate arithmetic expression#NEWLINE#" }, /* STATEMENTEVAL */
{ 8, "execute Execute statements in a file#NEWLINE#" }, /* STATEMENTEXECUTE */
{ 9, "functions Show list of user defined functions#NEWLINE#" }, /* STATEMENTFUNCS */
{ 10, "input Change numeral input system#NEWLINE#" }, /* STATEMENTINPUT */
{ 11, "help Show basic help text#NEWLINE#" }, /* STATEMENTHELP */
{ 12, "output Change numeral output system#NEWLINE#" }, /* STATEMENTOUTPUT */
{ 13, "list Show content of a directory#NEWLINE#" }, /* STATEMENTLIST */
{ 14, "show Show content of a file#NEWLINE#" }, /* STATEMENTSHOW */
{ 15, "load Load variable and functions from file#NEWLINE#" }, /* STATEMENTLOAD */
{ 16, "save Save variable and functions to file#NEWLINE#" }, /* STATEMENTSAVE */
{ 17, "variables Show list of variables#NEWLINE#" }, /* STATEMENTVARS */
{ 18, "version Show version string#NEWLINE#" }, /* STATEMENTVERSION */
{ 19, "license Show copyright and license texts#NEWLINE#" }, /* STATEMENTLICENSE */
{ 20, "memory Show internal memory usage#NEWLINE#" }, /* STATEMENTMEMORY */
{ 21, "exit Exit program#NEWLINE#" }, /* STATEMENTEXIT */
{ 22, "The def and eval statements are optional. Functions and#NEWLINE#variables statements can be shorten to funcs and vars.#NEWLINE#" }, /* STATEMENTFOOTER */
{ 23, "Type Name#NEWLINE#--------------------------------------------------#NEWLINE#" }, /* TXTLISTDIRHEADER */
{ 24, "[file]" }, /* TXTLISTDIRTFILE */
{ 25, "[dir]" }, /* TXTLISTDIRTDIR */
{ 26, "[unknown]" }, /* TXTLISTDIRTUNKNOWN */
{ 27, "Allocated blocks:#SPACE#" }, /* TXTMEMBLOCKS */
{ 28, "Memory usage: #SPACE#" }, /* TXTMEMSIZE */
{ 29, "Maximum usage: #SPACE#" }, /* TXTMEMMAXSIZE */
{ 30, "No help is available for this topic.#NEWLINE#" }, /* HELPNOHELP */
{ 31, "Syntax error:#SPACE#" }, /* HELPSYNTAX */
{ 32, "Unexpected error:#SPACE#" }, /* HELPUERROR */
{ 33, "Variable is not defined:#SPACE#" }, /* HELPVARNDEF */
{ 34, "Function is not defined:#SPACE#" }, /* HELPFUNNDEF */
{ 35, "Function cannot be redefined:#SPACE#" }, /* HELPFUNRDEF */
{ 36, "Base value must be between 2 and 32:#SPACE#" }, /* HELPPNUMERA */
{ 37, "Number of digist must be between 0 and 15:#SPACE#" }, /* HELPPDIGITS */
{ 38, "Numeral input system is#SPACE#" }, /* HELPINPUSHOW */
{ 39, "Numeral output system is#SPACE#" }, /* HELPOUTPSHOW */
{ 40, "Input changed to#SPACE#" }, /* HELPINPUSETT */
{ 41, "Output changed to#SPACE#" }, /* HELPOUTPSETT */
{ 42, "Number of digits changed to#SPACE#" }, /* HELPDIGISETT */
{ 43, "Number of digits shown are#SPACE#" }, /* HELPDIGISHOW */
{ 44, "No variables are defined.#NEWLINE#" }, /* HELPVARSNDEF */
{ 45, "No functions are defined.#NEWLINE#" }, /* HELPFUNCNDEF */
{ 46, "Variable and functions loaded from file.#NEWLINE#" }, /* HELPLOADSUCC */
{ 47, "Variable and functions saved to file.#NEWLINE#" }, /* HELPSAVESUCC */
{ 48, "Cannot save to file.#NEWLINE#" }, /* HELPSAVEFAIL */
{ 49, "Nothing to save.#NEWLINE#" }, /* HELPSAVENOTH */
{ 50, "Preferences loaded.#NEWLINE#" }, /* HELPPREFLOAD */
{ 51, "Preferences could not be loaded.#NEWLINE#" }, /* HELPPREFNOLO */
{ 52, "Preferences saved to disk.#NEWLINE#" }, /* HELPPREFSAVE */
{ 53, "Preferences could not be saved.#NEWLINE#" }, /* HELPPREFNOSA */
{ 54, "Could not open directory:#SPACE#" }, /* MSGNODIR */
{ 55, "Cannot open file.#NEWLINE#" }, /* MSGNOFILE */
{ -1, EMPTYSTRING }
};
+26 -8
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -57,11 +57,29 @@ void operator delete[] (void* ptr) { FreeMemSafe(ptr); }
/* GCC 3+ */
#if (__GNUC__ > 2)
/* C++11 */
#if __cplusplus > 199711L
#include <new>
void* operator new (size_t size) throw(std::bad_alloc) { return AllocMemSafe(size); }
void* operator new[] (size_t size) throw(std::bad_alloc) { return AllocMemSafe(size); }
void operator delete (void* ptr) throw() { FreeMemSafe(ptr); }
void operator delete[] (void* ptr) throw() { FreeMemSafe(ptr); }
void* operator new (std::size_t size) { return AllocMemSafe(size); }
void* operator new (std::size_t size, const std::nothrow_t& nothrow_value) noexcept { return AllocMemSafe(size); }
void* operator new[] (std::size_t size) { return AllocMemSafe(size); }
void* operator new[] (std::size_t size, const std::nothrow_t& nothrow_value) noexcept { return AllocMemSafe(size); }
void operator delete (void* ptr) noexcept { FreeMemSafe(ptr); }
void operator delete (void* ptr, const std::nothrow_t& nothrow_constant) noexcept { FreeMemSafe(ptr); }
void operator delete[] (void* ptr) noexcept { FreeMemSafe(ptr); }
void operator delete[] (void* ptr, const std::nothrow_t& nothrow_constant) noexcept { FreeMemSafe(ptr); }
#else
/* C++98 */
#include <new>
void* operator new (std::size_t size) throw (std::bad_alloc) { return AllocMemSafe(size); }
void* operator new (std::size_t size, const std::nothrow_t& nothrow_value) throw() { return AllocMemSafe(size); }
void* operator new[] (std::size_t size) throw (std::bad_alloc) { return AllocMemSafe(size); }
void* operator new[] (std::size_t size, const std::nothrow_t& nothrow_value) throw() { return AllocMemSafe(size); }
void operator delete (void* ptr) throw() { FreeMemSafe(ptr); }
void operator delete (void* ptr, const std::nothrow_t& nothrow_constant) throw() { FreeMemSafe(ptr); }
void operator delete[] (void* ptr) throw() { FreeMemSafe(ptr); }
void operator delete[] (void* ptr, const std::nothrow_t& nothrow_constant) throw() { FreeMemSafe(ptr); }
#endif
#endif
/* MSVC++ */
@@ -82,11 +100,11 @@ void WriteOutInt(int value) { printf("%i", value); }
int main(int argc, char** argv)
{
#if defined(WITHTEST)
if (argc == 2 && StrIsEqual(argv[1], "test"))
if (argc == 2 && StrIsEqual(argv[1], "--test"))
{
Program = new TestProgram(false);
}
else if (argc == 2 && StrIsEqual(argv[1], "testz"))
else if (argc == 2 && StrIsEqual(argv[1], "--testz"))
{
Program = new TestProgram(true);
}
+28 -17
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
@@ -79,17 +79,13 @@
https://github.com/rainlance/amath
\subsection download Download
Windows: http://amath.innolan.net/amath-1.8.0.zip <BR>
<BR>
FreeBSD: https://www.freshports.org/math/amath/ <BR>
<BR>
NetBSD: http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/math/amath/README.html <BR>
<BR>
Haiku: https://github.com/haikuports <BR>
<BR>
Included in the Icaros Desktop environment: http://vmwaros.blogspot.com/ <BR>
<BR>
Other packages: https://ranger.innolan.net/rainlance/amath/releases
FreeBSD: <a href="https://www.freshports.org/math/amath/">freshports.org</a><BR>
Haiku OS: <a href="https://depot.haiku-os.org/#!/pkg/amath/haikuports/1/8/3/-/1/x86_gcc2">depot.haiku-os.org</a><BR>
Mac OS X and Linux: <a href="https://pkgsrc.joyent.com">pkgsrc.joyent.com</a><<BR>
NetBSD: <a href="http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/math/amath/README.html">netbsd.org</a> and
<a href="http://pkgsrc.se/math/amath">pkgsrc.se</a><BR>
Windows: <a href="http://amath.innolan.net/amath-1.8.3-win.zip">amath.innolan.net</a><BR>
Other packages: <a href="http://ftp.innolan.net/pub/amath/">ftp.innolan.net</a>
\subsection history History
A full \ref release_page is available for amath.
@@ -98,6 +94,8 @@
\subsection command_stat Statements
\verbatim
about Show about text
clear Clear console window
def Define function
delete Delete variable or function
@@ -114,10 +112,11 @@
save Save variable and functions to file
variables Show list of variables
version Show version string
license Show copyright and license texts
memory Show internal memory usage
exit Exit program
\endverbatim
\subsection command_func Base functions
\subsection command_func Miscellaneous functions
\verbatim
abs Absolute value of number
sgn Mathematical signum function
@@ -225,7 +224,7 @@
\subsection license_bsd BSD License
<BLOCKQUOTE><PRE>
Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
Copyright (c) 2007 The NetBSD Foundation, Inc.
Copyright (c) 1990, 1993 The Regents of the University of California.
All rights reserved.
@@ -261,9 +260,21 @@
\page release_page Release history
\section release_sec Release history
\subsection version184 1.8.4 August 05 2017
- Ignore casing in hexadecimal numbers.
\subsection version183 1.8.3 July 21 2017
- Updated help texts and man page.
- Fixed bug in ANSI switch.
\subsection version182 1.8.2 July 14 2017
- MIPS support.
- Improved endianness detection.
- Fixed configuration errors.
\subsection version181 1.8.1 April 22 2017
- OpenBSD support
- Fixed Haiku bug
- OpenBSD support.
- Fixed Haiku bug.
\subsection version180 1.8.0 April 13 2017
- Fixed bugs in numeral systems.
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/
+2 -2
View File
@@ -1,5 +1,5 @@
/*-
* Copyright (c) 2014-2017 Carsten Sonne Larsen <cs@innolan.net>
* Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -23,7 +23,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Project homepage:
* http://amath.innolan.net
* https://amath.innolan.net
*
*/

Some files were not shown because too many files have changed in this diff Show More