This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| import Plotting | |
| skipNthElement :: Int -> [a] -> [a] | |
| skipNthElement d ys = take d ys <> drop (d + 1) ys | |
| lagrangePolynome :: [Double] -> Int -> Double -> Double | |
| lagrangePolynome xs i x = product $ skipNthElement i $ map pn [0 .. n - 1] | |
| where |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ stack init | |
| Looking for .cabal or package.yaml files to use to init the project. | |
| Using cabal packages: | |
| - ./ | |
| Selecting the best among 17 snapshots... | |
| * Rejected lts-15.7 | |
| ghc-8.8.3 cannot be used for these packages: | |
| - kgbotka |
NewerOlder