math.erf/math.erfinv (source, tests, README) already landed on main via87b95ae,b688cb2,fc9ce97,4cdc02b,6e8362b,cc71f17. This is the release step 0.2.3 skipped needing: bump the package version, rebuild the tracked Unity DLL/pdb deterministically, and add the CHANGELOG.md this package never had (docs/semver-policy.md names this exact gap). - packages/cultmath/src/CultMath/CultMath.csproj: Version 0.2.3 -> 0.2.4. - packages/cultmath/unity/org.gamecult.cultmath/package.json: 0.2.3 -> 0.2.4. - packages/cultmath/unity/org.gamecult.cultmath/CHANGELOG.md: new, [0.2.4] entry only (Added: erf, erfinv). Earlier versions are not backfilled, per the semver policy's own ruling on this package's pre-existing gap. - packages/cultmath/unity/org.gamecult.cultmath/Runtime/Plugins/CultMath.dll and .pdb: rebuilt via packages/cultmath/scripts/build-unity-package.ps1 (dotnet build, netstandard2.1, Release, --no-incremental, no Source Link). Built on Windows; the assembly is platform-neutral IL. The script's own determinism check (fresh build hash == tracked hash) and its version-parity check (package.json version == assembly FileVersion) both pass. - No HLSL mirror change: erf/erfinv are C#-only, and packages/cultmath/shaders/CultMath.hlsl already matches the copy under unity/org.gamecult.cultmath/Shaders/CultMath.hlsl byte for byte. Verified independent of build-unity-package.ps1's own checks: a scratch console app loaded the tagged cultmath-unity-v0.2.3 DLL and this build's fresh DLL into separate AssemblyLoadContexts and diffed their public surface. Only two members were added (math.erf(float), math.erfinv(float)), none removed; AssemblyVersion/FileVersion/InformationalVersion match apart from the 0.2.3 -> 0.2.4 bump; TargetFrameworkAttribute is unchanged (.NETStandard,Version=v2.1). erf/erfinv round-trip and domain-edge behavior (erfinv(+-1) = +-Infinity, erfinv(1.5) = NaN) verified by invoking the loaded methods directly. dotnet test packages/cultmath/tests/CultMath.Tests -c Release: 102 passed, 0 failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
801 B
801 B
Changelog
All notable changes to this package are documented in this file.
Earlier releases (0.2.0-0.2.3) predate this package's changelog and are not
backfilled here; see docs/semver-policy.md for why.
[0.2.4]
Added
math.erfandmath.erfinv: single-precision error function and its inverse.erfis the Abramowitz & Stegun 7.1.26 rational/exponential fit (max absolute error 1.5e-7 by that source, 6.621e-7 measured here against an independent reference).erfinvis Giles' minimax polynomial ("Approximating the erfinv function", GPU Computing Gems, 2010), guarded explicitly at the domain edges (erfinv(1) = +Infinity,erfinv(-1) = -Infinity, outside[-1, 1]isNaN); measured worst absolute error 5.066e-7, worsterf(erfinv(y))round trip 6.109e-7.