add L scale!

This commit is contained in:
Eric Mertens 2024-06-10 21:44:50 -07:00
parent f8b35a57e0
commit 3318daec72

View File

@ -1,8 +1,31 @@
{-# Language DataKinds #-} {-# Language DataKinds #-}
module Scales where {- |
The scales and guage marks found on a Concise #300 circular slide rule.
-}
module Scales (
cScale,
ciScale,
dScale,
kScale,
t1Scale,
t2Scale,
sScale,
ll2Scale,
ll3Scale,
lScale,
) where
import SlideRule import SlideRule
lScale :: Scale OnWheel
lScale = Scale
{ scaleName = "L"
, scaleFun = id
, scaleFun' = id
}
cScale :: Scale OnWheel cScale :: Scale OnWheel
cScale = Scale cScale = Scale
{ scaleName = "C" { scaleName = "C"
@ -89,3 +112,19 @@ degToRad x = x * pi / 180
radToDeg :: Double -> Double radToDeg :: Double -> Double
radToDeg x = x * 180 / pi radToDeg x = x * 180 / pi
-- | pi
π :: Double
π = pi
-- | degrees per radian
ρ :: Double
ρ = 18/pi
-- | minutes per radian
ρ' :: Double
ρ' = 10.8/pi
-- | seconds per radian
ρ'' :: Double
ρ'' = 6.48/pi