Skip to content

Commit 517919f

Browse files
Add validation tests for derived physical constants in PhysicalConstantsTests.cs
This update introduces new tests to validate derived physical constants against fundamental constants, ensuring accuracy through comprehensive validation chains. The tests cover various electromagnetic and thermodynamic relationships, enhancing the overall robustness of the physical constants validation in the Semantics library.
1 parent c0ecd9c commit 517919f

3 files changed

Lines changed: 822 additions & 2 deletions

File tree

.cursor/rules/derived-cursor-rules.mdc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,5 @@ When adding XML documentation comments:
144144
* When working with dimensionless quantities:
145145
* Reserve Radians for Angular Quantities Only
146146
* Create Semantically Appropriate Dimensionless Units. For example, use BootstrapDimensionless, BootstrapDecibel and BootstrapPH for non-angular dimensionless quantities.
147-
* **Testing Physical Constants:** Add additional tests for physical constants to validate stored values against calculated values from fundamental constants.
147+
* **Testing Physical Constants:** Add additional tests for physical constants to validate stored values against calculated values from fundamental constants.
148+
* **Testing Physical Constants - Validation Chain**: Where any of the constants can be derived from fundamental constants or other derived constants, they should be tested in that fashion to make sure they are as accurate as possible through all stages of calculation.

.specstory/history/2025-06-13_05-35-add-tests-for-physical-constants-validation.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,3 +864,47 @@ All 401 tests now pass successfully, including the original 4 tests plus the 13
864864

865865
---
866866

867+
_**User**_
868+
869+
where any of the contstants can be derived from fundamental constants or other derived constants, they should be tested in that fashion to make sure they are as accurate as possible through all stages of calculation
870+
871+
---
872+
873+
_**Assistant**_
874+
875+
876+
877+
---
878+
879+
You're absolutely right! Let me identify all constants that can be derived from fundamental constants or other derived constants and create comprehensive tests to validate the entire calculation chain. This will ensure maximum accuracy through all stages of calculation.
880+
881+
---
882+
883+
Read file: Semantics/Quantities/Core/PhysicalConstants.cs
884+
885+
---
886+
887+
Now let me search for other constants and relationships that might need to be added to identify all derivable constants:
888+
889+
---
890+
891+
<details>
892+
<summary>Searched web "fundamental physical constants CODATA derived relationships electron mass proton mass fine structure constant" • **6** results</summary>
893+
894+
| Title | URL |
895+
|-------|-----|
896+
| CODATA recommended values of the fundamental physical ... | https://physics.nist.gov/cuu/Constants/codata.pdf |
897+
| CODATA recommended values of the fundamental physical ... | https://www.codata.org/uploads/RMP.88.035009.pdf |
898+
| CODATA Recommended Values of the Fundamental Physical ... | https://physics.nist.gov/cuu/pdf/JPCRD2018CODATA.pdf |
899+
| CODATA recommended values of the fundamental physical constants: 2018 | https://pmc.ncbi.nlm.nih.gov/articles/PMC9890581/ |
900+
| Fundamental Physical Constants from NIST | https://physics.nist.gov/cuu/Constants/ |
901+
| Codata Internationally Recommended 2022 Values of the Fundamental Physical Constants | https://www.nist.gov/publications/codata-internationally-recommended-2022-values-fundamental-physical-constants |
902+
903+
</details>
904+
905+
---
906+
907+
Now
908+
909+
---
910+

0 commit comments

Comments
 (0)