Release CultMath 0.2.4: erf and erfinv reach the Unity package
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>
This commit is contained in:
parent
d110d9d6ff
commit
20e6da5942
5 changed files with 21 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
<RootNamespace>CultMath</RootNamespace>
|
||||
<AssemblyName>CultMath</AssemblyName>
|
||||
<PackageId>GameCult.Math</PackageId>
|
||||
<Version>0.2.3</Version>
|
||||
<Version>0.2.4</Version>
|
||||
<Description>Clean-room C# math shaped for HLSL-style renderer code.</Description>
|
||||
<Authors>GameCult</Authors>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
|
|
|
|||
19
packages/cultmath/unity/org.gamecult.cultmath/CHANGELOG.md
Normal file
19
packages/cultmath/unity/org.gamecult.cultmath/CHANGELOG.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# 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.erf` and `math.erfinv`: single-precision error function and its
|
||||
inverse. `erf` is 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). `erfinv` is 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]` is `NaN`); measured worst
|
||||
absolute error 5.066e-7, worst `erf(erfinv(y))` round trip 6.109e-7.
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "org.gamecult.cultmath",
|
||||
"displayName": "CultMath",
|
||||
"version": "0.2.3",
|
||||
"version": "0.2.4",
|
||||
"unity": "2021.3",
|
||||
"description": "Precompiled CultMath numeric primitives and matching HLSL semantics for GameCult Unity runtimes.",
|
||||
"license": "MPL-2.0",
|
||||
|
|
|
|||
Loading…
Reference in a new issue