Skip to content

Implement unimplemented functions & make new types (#252) - #696

Open
mithunbabbira wants to merge 1 commit into
typelevel:masterfrom
mithunbabbira:implement-squants-stubs
Open

mithunbabbira wants to merge 1 commit into
typelevel:masterfrom
mithunbabbira:implement-squants-stubs

Conversation

@mithunbabbira

Copy link
Copy Markdown

Closes #252

Implement all stubbed functions (??? → real implementations) in squants:

New types created (7):

  • Energy/SpecificVolume: Volume/mass (inverse of Density)
  • Energy/MolarVolume: Volume per amount of substance
  • Energy/Insolation: Energy per unit area
  • Motion/DynamicViscosity: Pressure * time
  • Motion/SurfaceTension: Force per unit length
  • Mass/SubstanceConcentration: Amount of substance per volume
  • Radio/AbsorbedEnergyRate: Energy per unit time

Stubs implemented (8):

  • Volume / (Mass) → SpecificVolume
  • Volume / (ChemicalAmount) → MolarVolume
  • Dose / (Time) → AbsorbedEnergyRate
  • Pressure * (Time) → DynamicViscosity
  • Force / (Length) → SurfaceTension
  • ChemicalAmount / (Volume) → SubstanceConcentration
  • SpecificEnergy / (Time) → AbsorbedEnergyRate
  • Energy / (Area) → Insolation

Left as-is (5):

Money.scala stubs remain as ??? (documented: "Should not be used with Money - drawn from MoneyContext instead"), as these are design decisions requiring MoneyContext integration.

Implement all stubbed functions (??? → real implementations) in squants:

New types created:
- Energy/SpecificVolume: Volume/mass inverse of Density
- Energy/MolarVolume: Volume per amount of substance
- Energy/Insolation: Energy per unit area
- Motion/DynamicViscosity: Pressure * time
- Motion/SurfaceTension: Force per unit length
- Mass/SubstanceConcentration: Amount of substance per volume
- Radio/AbsorbedEnergyRate: Energy per unit time

Stubs implemented:
- Volume /(Mass) -> SpecificVolume
- Volume /(ChemicalAmount) -> MolarVolume
- Dose /(Time) -> AbsorbedEnergyRate
- Pressure *(Time) -> DynamicViscosity
- Force /(Length) -> SurfaceTension
- ChemicalAmount /(Volume) -> SubstanceConcentration
- SpecificEnergy /(Time) -> AbsorbedEnergyRate
- Energy /(Area) -> Insolation

Money.scala stubs left as-is (documented: should not be used, drawn from MoneyContext)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

implement unimplemented functions & make new types

1 participant