Skip to content
Snippets Groups Projects
Select Git revision
  • cb7b26aa5a553766cc90e513d146f6cfd7ac9142
  • main default protected
  • feat_dma230_dataio
  • feat_qspi_rom
  • feat_extio
  • feat_dmax4
  • feat_dma350
  • feat_nanosoc_regions
  • feat_accel_decouple
  • dev
  • feat_accel_hash_stream
  • nanosoc-2023
12 results

nanosoc_tb.v

Blame
  • exA2.hs 223 B
    approxPi :: Int -> Double
    approxPi n | n <= 0 = error "negative numbers or 0 cannot be used for approximations of pi"
               | otherwise = 2 * sum [product [1..a] / product [1,3..2 * a + 1] | a <- [0..fromIntegral n-1]]