Copyright | (c) Eric Zoerner 2023 |
---|---|
License | BSD3 |
Maintainer | eric.zoerner@proton.me |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Synopsis
- f :: Floating a => a -> a
- stdGravityMPS2 :: Double
- yRock30 :: Double -> Double
- vRock30 :: Double -> Double
- sinDeg :: Double -> Double
- f25 :: Double -> Double
- g :: Double -> Double
- h :: Double -> Double
- ɣ :: Double -> Double
- bigU :: Double -> Double
- bigL :: Double -> Double
- bigEx :: Double -> Double
- bigEz :: Double -> Double
Exercise 2.1
f :: Floating a => a -> a Source #
f(x) = √ (1 + x)
>>>
f 0
1.0>>>
f 1
1.4142135623730951>>>
f 3
2.0
Exercise 2.2.
stdGravityMPS2 :: Double Source #
Standard Earth gravity acceleration at sea level in m/s².
yRock30 :: Double -> Double Source #
Assuming an initial velocity of 30 m/s, accepts as input the time (after the rock was thrown) in seconds and gives as output the height of the rock in meters.
Exercise 2.3.
vRock30 :: Double -> Double Source #
Accepts as input the time (after the rock was thrown) in seconds and gives as output the upward velocity of the rock in meters per second. A downward velocity is returned as a negative number.
Exercise 2.4.
sinDeg :: Double -> Double Source #
Computes the sine of an angle given in degrees.
>>>
sinDeg 30
0.49999999999999994
Exercise 2.5.
Exercise 2.6.
(a) b -> 1 / sqrt (1 - b ** 2)
(b)
>>>
(\b -> 1 / sqrt (1 - b ** 2)) 0.8
1.666666666666667