/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
@function sqrt($x, $iterations: 10) {
  $sqr: 1;

  @for $i from 1 through $iterations {
    $sqr: ($sqr - ($sqr * $sqr - $x) / (2 * $sqr));
  }

  @return $sqr;
}
