Menu

calc: C-style arbitrary precision system / News: Recent posts

calc 2.15.1.0 release

The following are the changes in this release:

Converted all ASCII tabs to ASCII spaces using a 8 character
tab stop, for all files, except for all Makefiles (plus rpm.mk).
The command `git diff -w` reports no changes.  There is no
functionality change in calc: only ASCII tabs to ASCII spaces.

Fixed trailblank.  It was pruning . in its find search.
Added check for ASCII tabs is non-Makefiles.... [read more](/p/calc/news/2024/07/calc-21510-release/)
Posted by (chongo) Landon Curt Noll 2024-07-12

calc 2.15.0.7 release

The following are the changes in this release:

Thanks to GitHub user @bambooleafz a critical bug (GitHub issue
#148 - https://github.com/lcn2/calc/issues/148) they identified
was fixed.
Posted by (chongo) Landon Curt Noll 2024-05-28

calc 2.15.0.7 release

The following are the changes in this release:

Thanks to GitHub user @bambooleafz a critical bug (GitHub issue
#148 - https://github.com/lcn2/calc/issues/148) they identified
was fixed.
Posted by (chongo) Landon Curt Noll 2024-05-28

calc 2.15.0.6 release

The following are the changes in this release:

 Thanks to GitHub user @ashamedbit, a long standing memory leak in
 zrandom.c has been fixed.
Posted by (chongo) Landon Curt Noll 2024-02-09

calc 2.15.0.5 release

The following are the changes in this release:

 make clobber now removes the legacy files: have_fpos.h, help/man,
 and help/usage.  The latter 2 are now managed as help aliases
 in help.c.

 make install now removes the legacy files: ${HELPDIR}/man
 and ${HELPDIR}/usage.

 Fixed a problem where, when calc was linked with and uses GNU
 readline then for any multi-line copy-and-paste, only the first
 line is executed.  Thanks to GitHub user @malfisya for reporting
 this problem, and thanks to GitHub user @gromit1811 for doing
 the research needed to overcome deficiencies in the GNU readline
 documentation, and for supplying the work-a-round to allow
 multi-line copy-and-paste to work as expected!
Posted by (chongo) Landon Curt Noll 2024-02-02

calc 2.15.0.4 release

The following are the changes in this release:

Fixed bug that caused calc to fail to compile filepos2z() in file.c
on little endian machines for the Debian apcalc package.  Thanks to
Martin Buck (m at rtin-buck dor de) for for fix.

Removed unused macros from zmath.h:

SWAP_B32_IN_HASH(dest, src)
SWAP_B16_IN_HASH(dest, src)
SWAP_B8_IN_HASH(dest, src)
SWAP_B32_IN_FLAG(dest, src)
SWAP_B16_IN_FLAG(dest, src)
SWAP_B8_IN_FLAG(dest, src)... [read more](/p/calc/news/2023/12/calc-21504-release/)
Posted by (chongo) Landon Curt Noll 2023-12-21

calc 2.15.0.2 release

The following are the changes in this release:

Updated BUGS about MSYS2 on Windows compiling of calc.

Added more git related checks and sanity checks to chk_tree.

Added ${FSANITIZE} make variable to Makefile.config to hold
common Address Sanitizer (ASAN) optins to modern Linux and macOS.
The Address Sanitizer is NOT enabled not compiled in by default.
Improved comments in Makefile.local for RHEL9.2 (Linux) and for
macOS 14.0 that, when uncommented and calc is recompiled (i.e.,
make clobber all) will enable the Address Sanitizer (ASAN) for calc.... [read more](/p/calc/news/2023/12/calc-21502-release/)
Posted by (chongo) Landon Curt Noll 2023-12-08

calc 2.15.0.1 release

The following are the changes in this release:

The tarball for calc version 2.15.0.0 was missing version.h.
The version.h is now listed as part of the calc distribution.

Added the following new trigonometric functions:

versin(x [,eps])    versed trigonometric sine
coversin(x [,eps])  coversed trigonometric sine
vercos(x [,eps])    versed trigonometric cosine
covercos(x [,eps])  coversed trigonometric cosine
aversin(x [,eps])   inverse versed trigonometric sine
acoversin(x [,eps]) inverse coversed trigonometric sine
avercos(x [,eps])   inverse versed trigonometric cosine
acovercos(x [,eps]) inverse coversed trigonometric cosine
haversin(x [,eps])  half versed trigonometric sine
hacoversin(x [,eps])    half coversed trigonometric sine
havercos(x [,eps])  half versed trigonometric cosine
hacovercos(x [,eps])    half coversed trigonometric cosine
ahaversin(x [,eps]) inverse half versed trigonometric sine
ahacoversin(x [,eps])   inverse half coversed trigonometric sine
ahavercos(x [,eps]) inverse half versed trigonometric cosine
ahacovercos(x [,eps])   inverse half coversed trigonometric cosine
exsec(x [,eps])     exterior trigonometric secant
aexsec(x [,eps])    inverse exterior trigonometric secant
excsc(x [,eps])     exterior trigonometric cosecant
aexcsc(x [,eps])    inverse exterior trigonometric cosecant
crd(x [,eps])       trigonometric chord of a unit circle
acrd(x [,eps])      inverse trigonometric chord of a unit circle
cas(x [,eps])       trigonometric cosine plus sine
cis(x [,eps])       Eulers formula... [read more](/p/calc/news/2023/10/calc-21501-release-802/)
Posted by (chongo) Landon Curt Noll 2023-10-05

calc 2.15.0.1 release

The following are the changes in this release:

The tarball for calc version 2.15.0.0 was missing version.h.
The version.h is now listed as part of the calc distribution.

Added the following new trigonometric functions:

versin(x [,eps])    versed trigonometric sine
coversin(x [,eps])  coversed trigonometric sine
vercos(x [,eps])    versed trigonometric cosine
covercos(x [,eps])  coversed trigonometric cosine
aversin(x [,eps])   inverse versed trigonometric sine
acoversin(x [,eps]) inverse coversed trigonometric sine
avercos(x [,eps])   inverse versed trigonometric cosine
acovercos(x [,eps]) inverse coversed trigonometric cosine
haversin(x [,eps])  half versed trigonometric sine
hacoversin(x [,eps])    half coversed trigonometric sine
havercos(x [,eps])  half versed trigonometric cosine
hacovercos(x [,eps])    half coversed trigonometric cosine
ahaversin(x [,eps]) inverse half versed trigonometric sine
ahacoversin(x [,eps])   inverse half coversed trigonometric sine
ahavercos(x [,eps]) inverse half versed trigonometric cosine
ahacovercos(x [,eps])   inverse half coversed trigonometric cosine
exsec(x [,eps])     exterior trigonometric secant
aexsec(x [,eps])    inverse exterior trigonometric secant
excsc(x [,eps])     exterior trigonometric cosecant
aexcsc(x [,eps])    inverse exterior trigonometric cosecant
crd(x [,eps])       trigonometric chord of a unit circle
acrd(x [,eps])      inverse trigonometric chord of a unit circle
cas(x [,eps])       trigonometric cosine plus sine
cis(x [,eps])       Eulers formula... [read more](/p/calc/news/2023/10/calc-21501-release/)
Posted by (chongo) Landon Curt Noll 2023-10-05

calc 2.15.0.0 release

Due to a missing verson.h file, this release was moved under old-calc.

We will release a version 2.15.0.1 soon.

Sorry (tm Canada 🇨🇦).

Posted by (chongo) Landon Curt Noll 2023-10-04

calc 2.14.3.5 release

The following are the changes in this release:

Under macOS, to reduce dependency chains, we remove functions
and data that are unreachable by the entry point or exported
symbols.  In particular, the macOS linker is used with both
"-dead_strip" and "-dead_strip_dylibs".

The libcalc shared library is now linked with libcustcalc.
Posted by (chongo) Landon Curt Noll 2023-08-17

calc 2.14.3.0 release

The following are the changes in this release:

Updated COPYING to include the actual text of "The Unlicense".
Made minor formatting changes to the file.

The Darwin specific ${DARWIN_ARCH}, thay by default was unset,
is now the ${ARCH_CFLAGS} Makefile variable.  Comments about
various "-arch name" have been moved to the ${ARCH_CFLAGS} area.

For old Apple Power PC systems, the following is added:... [read more](/p/calc/news/2023/08/calc-21430-release/)
Posted by (chongo) Landon Curt Noll 2023-08-02

calc 2.14.2.0 release

The following are the changes in this release:

Ported calc to the s390x IBM Mainframe running RHEL9.1.

Added cal/splitbits.cal:

splitbits(x, b)

Given an integer x, split the value into a list of integers,
each of which is at most b bits long.

The value b must be an integer > 0.

The number of elements in the returned list is:

    ceil((highbit(x) + 1) / b)

If x == 0, then a list of 1 element containing 0 is returned.... [read more](/p/calc/news/2023/07/calc-21420-release/)
Posted by (chongo) Landon Curt Noll 2023-07-22

calc 2.14.1.6 release

The following are the changes in this release:

Fixed version numbers in two cases in CHANGES that referred
to the 2.14.2.x instead of 2.14.1.x.

Rename MINGW Makefile variable (a holdover from MINGW32_NT-5.0)
to OSNAME.

Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings.

Fixed when USE_READLINE, READLINE_LIB, READLINE_EXTRAS, and
READLINE_INCLUDE are set to empty (disable use of the GNU-readline
facility).... [read more](/p/calc/news/2023/06/calc-21416-release/)
Posted by (chongo) Landon Curt Noll 2023-06-01

calc 2.14.1.5 release

The following are the changes in this release:

Fixed version numbers in two cases in CHANGES that referred
to the 2.14.2.x instead of 2.14.1.x.

Rename MINGW Makefile variable (a holdover from MINGW32_NT-5.0)
to OSNAME.

Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings.

Fixed when USE_READLINE, READLINE_LIB, READLINE_EXTRAS, and
READLINE_INCLUDE are set to empty (disable use of the GNU-readline
facility).... [read more](/p/calc/news/2023/03/calc-21415-release/)
Posted by (chongo) Landon Curt Noll 2023-03-13 Labels: v2.14.1.5

calc 2.14.1.3 release

The following are the changes in this release:

Fixed missing <string.h include in have_fpos_pos.c.

Change calc version from 2.14.1.2 to 2.14.2.3 as part of a test to
build calc RPMs on a reference RHEL8.7 platform (formerly a RHEL7.9
platform).
Posted by (chongo) Landon Curt Noll 2023-02-14

calc 2.14.1.2 release

The following are the changes in this release:

Restored use of the #define FPOS_POS_LEN symbol.  This refers to
the length of the __pos element (if the __pos element exists),
the fpos_t type (if that type exists).

Changed SWAP_HALF_IN_FILEPOS(dest, src) mato to use FILEPOS_LEN Little
Endian when FILEPOS is a simple scalar type (i.e., HAVE_FILEPOS_SCALAR
is defined).

Changed #define HAVE_FPOS to HAVE_FGETSETPOS.... [read more](/p/calc/news/2022/11/calc-21412-release/)
Posted by (chongo) Landon Curt Noll 2022-11-29

calc 2.14.1.0 release

The following are the changes in this release:

Fixed alignment of show item section of help command.

Bug fix: While 0^0 == 1, now for y > 0, 0^y == 0.
Adjusted cal/test8900.cal to reflect this bug fix.
Added tests to cal/regress.cal to help verify bug fix is fixed.
Posted by (chongo) Landon Curt Noll 2022-04-08

calc 2.14.0.14 release

The following are the changes in this release:

Fixed typo in Makefile.local comment.

Established a tagging procedure for a production release.
Production git tags will be of the form:

prod-2.x.y.z
Posted by (chongo) Landon Curt Noll 2021-12-28

calc 2.14.0.13 release

Release v2.14.0.13

We apologize for the calc v2.14.0.12 source tarball that was missing
critical files. While the executable was well tested, our release
process was deficient.

We are improved our release process and added tests during the release
procedure to help verify that we are not regressing in to the "v2.14.0.12
source tarball" issue, among other things.

Depending on how things do, you might is several releases come out over
a short period of time. The core of calc isn't changing, so the calc
executable will be the same as we focus on the Makefiles, our release
procedure, and related documentation / help files.... read more

Posted by (chongo) Landon Curt Noll 2021-12-14

calc 2.14.0.12 release

The following are the changes in this release:

Fixed a number of typos.

Drop support for SunOS, IRIX and MINGW32_NT-5.0 targets.
Drop support for CLOCK_SGI_CYCLE.  Drop testing for __MSDOS__.

Minor improvement of various help files.  Made format of help
files more consistent.

Corrected a few comments in zrandom.c, including a case where
the comment referred to 1007 when it should have used 2^32.... [read more](/p/calc/news/2021/12/calc-214012-release/)
Posted by (chongo) Landon Curt Noll 2021-12-09

calc 2.14.0.8 release

The following are the changes in this release:

Identical to v2.14.0.7: now declared a stable release.
Posted by (chongo) Landon Curt Noll 2021-11-23

calc 2.13.0.1 release

The following are the changes in this release:

Replaced /usr/local with the use of ${PREFIX} in calc Makefiles.

The ${PREFIX} is not the same as ${T}.  The ${T} specifies
a top level directory under which calc installs things.
While usually ${T} is empty, it can be specific path
as if calc where "chrooted" during an install.
The ${PREFIX} value, during install, is a path between
the top level ${T} install directory and the object
such as an include file.... [read more](/p/calc/news/2021/04/calc-21301-release/)
Posted by (chongo) Landon Curt Noll 2021-04-17

calc 2.13.0.0 release

The following are the changes in this release:

Fixed typo (missing quotes) in the env rule.

Fixed intendation problem in CHANGES.

Combined 2.12.9.1 changes into the 2.12.8.2 to 2.12.9.0
range, and thus renamed the range to 2.12.8.2 to 2.12.9.1.

Fixed issues related to building Makefile.simple.

Fixed how the Makefile variable MANPATH is set for macOS.

Added a bunch of information to the near bottom of HOWTO.INSTALL
on calc Makefiles.  This information discusses the various
Makefiles found in the calc source.... [read more](/p/calc/news/2021/03/calc-21300-release/)
Posted by (chongo) Landon Curt Noll 2021-03-27

calc 2.12.9.1 release

The following are the changes in this release:

Fixed a typo typo in help/Makefile that caused the build of
2.12.9.0 to fail in a number of cases.  Thanks to a report by
<GitHub user balducci>.

Pass form Makefile variables ${Q}, ${S}, ${E}, ${H} and ${V} down
to all sub-directory Makefiles from the top level Makefile.
Posted by (chongo) Landon Curt Noll 2021-03-26