title: "The compiler is unable to type-check this expression in reasonable time" for a simple formula
body: <p>I have what appears to be a rather simple arithmetic expression:</p>
  
  <pre><code>       let N = 2048
  //        var c = (0..&lt;N).map{ sin( 2.0 * .pi * Float($0) / (Float(N)/2.0)) }
          let sinout = (0..&lt;N * 10).map { x in
              sin(2 * .pi * Float(x) / Float(N / 2))
          }
  </code></pre>
  
  <p>But this is generating:</p>
  
  <pre><code>The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/2DP2j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2DP2j.png" alt="enter image description here"></a></p>
  
  <p>Why is such a simple equation not parse-able by the Swift compiler?  How do we write equations that Swift can actually parse?  This must be a major headache for persons writing <code>DSP</code> and/or linear algebra libraries: what workarounds or patterns do  you use?</p>