Search results

Jump to navigation Jump to search
  • ...me</code> tests numbers by ''trial division'' using (up to<math>\textstyle\sqrt b</math>) a memoized primes list produced by sieve of Eratosthenes to which For ''very wide'' ranges, specifically when <math>\textstyle a < \sqrt{b}</math>, we're better off just using the primes sequence itself, without
    5 KB (696 words) - 19:46, 18 January 2014
  • 12 / sqrt 640320 ^ 3
    4 KB (652 words) - 02:04, 7 February 2009
  • ratio = toRational (2/(1+sqrt(5)::Double))
    3 KB (377 words) - 16:08, 8 December 2009
  • (cons "\\<\\(sqrt\\)\\>" 'square-root)
    5 KB (424 words) - 10:46, 18 May 2012
  • *<math> \sqrt{\ } = \{(0,0), (1,1), (4,2), (9,3), \dots \} </math>
    3 KB (430 words) - 00:30, 1 February 2016
  • = sqrt (x * x + y * y)
    3 KB (430 words) - 11:59, 19 April 2021
  • let distance = sqrt . magnitude2 $ p1 .-. p2 distance = sqrt distance2
    85 KB (11,049 words) - 06:08, 21 February 2010
  • truncate . sqrt . fromIntegral $ (hi `div` 2)
    7 KB (917 words) - 18:29, 21 February 2010
  • len v = sqrt (v *. v) dist p0 p1 = sqrt ((p1 <-> p0) *. (p1 <-> p0))
    23 KB (3,591 words) - 20:03, 12 May 2008
  • ...code> takes a number and returns the square root of that number, <code>map sqrt</code> takes a ''list'' of numbers and returns a ''list'' of their square r
    15 KB (2,547 words) - 21:58, 29 October 2011
  • n <- [1..floor (sqrt 1000)], m <- [n+1..floor (sqrt 1000)],
    11 KB (1,557 words) - 09:03, 19 September 2014
  • tiled = named "T" $ Tall 1 (5/100) (2/(1+(toRational(sqrt(5)::Double))))
    8 KB (889 words) - 03:53, 6 October 2011
  • Prelude> <hask>sqrt 2</hask>
    14 KB (1,168 words) - 07:39, 12 February 2012
  • | otherwise = sqrt $! vBv / vv | otherwise = sqrt $! vBv / vv
    13 KB (1,875 words) - 22:33, 22 January 2012
  • [n | n<-[2..], all ((> 0).rem n) [2..floor.sqrt.fromIntegral$n]] 2 : [n | n<-[3,5..], all ((> 0).rem n) [3,5..floor.sqrt.fromIntegral$n]]
    18 KB (2,583 words) - 20:08, 19 December 2020
  • m = (truncate (sqrt (fromIntegral r)) + n) `div` d u = k*yn+l -- u/v is the i-th convergent of sqrt(d)
    6 KB (979 words) - 10:20, 18 May 2022
  • :Prelude> <hask>sqrt 2</hask>
    17 KB (1,020 words) - 07:22, 9 June 2023
  • * Sharing is easy, i.e. in <hask>sqrt pi + sin pi</hask>, <hask>pi</hask> is computed only once * Sharing of temporary results is difficult, that is, in <hask>sqrt pi + sin pi</hask>, <hask>pi</hask> ''will'' be computed twice, each time w
    21 KB (2,880 words) - 09:43, 4 May 2024
  • ratio = toRational (2/(1 + sqrt 5 :: Double)) -- golden, thx Octoploid
    13 KB (1,171 words) - 02:25, 9 October 2011
  • ratio = toRational (2/(1+sqrt(5)::Double))
    12 KB (1,515 words) - 15:23, 5 January 2008

View (previous 20 | next 20) (20 | 50 | 100 | 250 | 500)