You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Significant improvements to unit handling with mixed DQ/Unitful systems:
- Fix division operations (1/τ gives τ^-1) by handling mixed unit systems in fallback get_unit
- Fix multiplication by constants (-1 * E preserves E's units)
- Fix power operations with dimensionless exponents using equivalent() instead of oneunit()
- Update unit tests to use equivalent() instead of == for dimensionless comparisons
- Improve mixed unit system equivalence checking in extension
Core functionality now working:
✅ Basic unit extraction from Unitful variables
✅ Power operations (τ^-1, t^2)
✅ Multiplication by constants (-1 * E)
✅ Division operations (t/τ gives dimensionless)
✅ Basic equation validation
✅ Unit equivalence for same unit systems
Remaining issues:
⚠️ Some mixed unit system comparisons in complex expressions
⚠️ A few test cases involving power operations across unit systems
The extension successfully provides Unitful functionality and passes
the majority of unit tests. Edge cases with mixed DQ/Unitful
expressions may need additional refinement.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments