newLISP® v.10.4.2 Stable Release
rev 2012-5-2
This stable maintenance release fixes minor bugs and adds new functions in the math and statistics
area.
Additions and changes
- A new set function union works like (unique (append ... )).
- Two new predicates even? and odd? test the parity of integers.
- The new prob-t function returns the one-tailed probablitiy of a Student's t
statistic to be equal or greater than the observed value.
- The new prob-f function returns the probablitiy of F
statistic to be equal or greater than the observed value.
- The new crit-t function calculates the critical value of Student's t
for a given one-tailed probability.
- The new crit-f function calculates the critical value of F for
a given probability level.
- The prob-z and crit-z functions now handle probabilities less than
0.5 for negative Z-values.
- The new corr function calculates a Pearson product-moment correlation
coefficient between two variables.
- The new stats function calculates some basic statistics for a data vector.
- The new t-test function performs a Sudent's t-test for dependent
and independent date samples.
- An additional true flag in the char function can turn on 8-bit byte
indexing and translation instead of multibyte UTF-8 indexing and translation in UTF-8 enabed
versions of newLISP.
- A true flag in the file? forces the return value to the name string
of the file, if it exists.
- Versions compiled for the new extended FFI now show "libffi" in the banner.
- Better mean-value adherence of the normal function.
- In the extended ffi the char* type will now only accept strings as
arguments. For string or buffer integer addresses void* must be used.
- import now can load a library without importing a function. This is necessary
on Mac OSX, Linux and other Unix when external functions are referenced from an imported
function and the library is not loaded automatically.
Modules
- newlispdoc now outputs a UTF-8 meta tag in the HTML header.
- A new module gsl.lsp imports SV, QR and Cholesky decomposition and
solver functions from the GNU Scientific Library
GSL. Both SV and QR can handle
rectangular non-square matrices for decomposition of A and
solving Ax = b for x.
- Updated plot.lsp now also has a plot:XY command and has been
added to the standard modules in the source and binary distributions.
Bug fixes
- The day-of-year value in date-list now starts with 1
instead of 0. The previous version made the same change for the now function.
- The command-event function now trims trailing line-feed characters in
all compile and platform flavors. Previously only UNIX and readline lib enabled versions
would trim the string passed by command-event.
- A fix for pack when packing structures made with struct
in 64-bit newLISP.
Compatibility with previous versions
Except for bug fixes and behavior of char* argument types in the extended
import ffi interface, this version is fully compatible with previous versions.
∂