Skip to content

Commit

Permalink
Reorganize source files
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jun 6, 2024
1 parent c72c873 commit 53c8d0f
Show file tree
Hide file tree
Showing 45 changed files with 1,334 additions and 564 deletions.
42 changes: 0 additions & 42 deletions src/core/cgs.scala

This file was deleted.

210 changes: 0 additions & 210 deletions src/core/conversions.scala

This file was deleted.

81 changes: 0 additions & 81 deletions src/core/quantifiable.scala

This file was deleted.

26 changes: 8 additions & 18 deletions src/core/derived.scala → src/core/quantitative.ArcMinutes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,11 @@ package quantitative

import language.experimental.captureChecking

val Hertz = MetricUnit(1.0/Second)
val Newton = MetricUnit(Metre*Kilo(Gram)/(Second*Second))
val Pascal = MetricUnit(Newton/(Metre*Metre))
val Joule = MetricUnit(Newton*Metre)
val Watt = MetricUnit(Joule/Second)
val Coulomb = MetricUnit(Second*Ampere)
val Volt = MetricUnit(Watt/Ampere)
val Farad = MetricUnit(Coulomb/Volt)
val Ohm = MetricUnit(Volt/Ampere)
val Siemens = MetricUnit(Ampere/Volt)
val Weber = MetricUnit(Volt*Second)
val Tesla = MetricUnit(Weber/(Metre*Metre))
val Henry = MetricUnit(Weber/Ampere)
val Lux = MetricUnit(Candela/(Metre*Metre))
val Becquerel = MetricUnit(1.0/Second)
val Gray = MetricUnit(Joule/Kilo(Gram))
val Sievert = MetricUnit(Joule/Kilo(Gram))
val Katal = MetricUnit(Mole/Second)
import anticipation.*
import rudiments.*

trait ArcMinutes[Power <: Nat] extends Units[Power, Angle]

object ArcMinutes:
given UnitName[ArcMinutes[1]] = () => "'".tt
erased given degreesPerRadian: Ratio[ArcMinutes[1] & Radians[-1], 3437.74677078] = ###
28 changes: 28 additions & 0 deletions src/core/quantitative.ArcSeconds.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
Quantitative, version [unreleased]. Copyright 2024 Jon Pretty, Propensive OÜ.
The primary distribution site is: https://propensive.com/
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific language governing permissions
and limitations under the License.
*/

package quantitative

import language.experimental.captureChecking

import anticipation.*
import rudiments.*

trait ArcSeconds[Power <: Nat] extends Units[Power, Angle]

object ArcSeconds:
given UnitName[ArcSeconds[1]] = () => "\"".tt
erased given degreesPerRadian: Ratio[ArcSeconds[1] & Radians[-1], 206264.806247] = ###
Loading

0 comments on commit 53c8d0f

Please sign in to comment.