slatec-sys 0.1.0

Unsafe, provider-neutral Rust declarations for the reviewed SLATEC raw API
Documentation
# Purpose

Evaluate a form of Spence's function defined by integral from 0 to X of -LOG(1-Y)/Y DY. For ABS(X) .LE. 1, the uniformly convergent expansion SPENC = sum K=1,infinity X**K / K**2 is valid. Spence's function can be used to evaluate much more general integral forms. For example, integral from 0 to Z of LOG(A*X+B)/(C*X+D) DX = LOG(ABS(B-A*D/C))*LOG(ABS(A*(C*X+D)/(A*D-B*C)))/C - SPENC (A*(C*Z+D)/(A*D-B*C)) / C. Ref -- K. Mitchell, Philosophical Magazine, 40, p. 351 (1949). Stegun and Abromowitz, AMS 55, p. 1004. Series for SPEN on the interval 0. to 5.00000D-01 with weighted error 6.82E-17 log weighted error 16.17 significant figures required 15.22 decimal places required 16.81

# Description

This canonical unsafe binding exposes original SLATEC routine `SPENC`. Its documented behavior is taken from the selected, source-hash-verified provider prologue; the exact implementation source is [SPENC](https://www.netlib.org/slatec/fnlib/spenc.f).

# Arguments

## `X`

**Direction:** `input`. **Fortran type:** `REAL`. **Rust ABI type:** `*mut f32`. **Shape:** scalar.

Input value at which the source-defined function is evaluated: Compute a form of Spence's integral due to K. Mitchell

# Return value

This Fortran function returns its scalar result using the compiler-validated ABI fingerprint `function:f32(mut_f32)`. It has no separate Rust `Result` status channel.

# ABI notes

- Canonical Rust path: `slatec_sys::special::spenc`
- Original SLATEC routine: `SPENC`
- Native symbol: `spenc_`
- ABI fingerprint: `function:f32(mut_f32)`
- Exact Netlib source file: [SPENC](https://www.netlib.org/slatec/fnlib/spenc.f)

# Safety

Every raw pointer must be non-null unless this argument contract expressly permits null, correctly aligned, and valid for its documented readable or writable extent. Preserve Fortran column-major layout, length, leading-dimension, workspace, callback-lifetime, aliasing, and provider-runtime requirements. The native routine does not retain ordinary argument pointers beyond this call.