# tf\_mandelbrot\* Computes the [Mandelbrot set](https://en.wikipedia.org/wiki/Mandelbrot_set) over the complex domain \[`x_min`, `x_max`), \[`y_min`, `y_max`), discretizing the xy-space into an output of dimensions `x_pixels` X `y_pixels`. The output for each cell is the number of iterations needed to escape to infinity, up to and including the specified `max_iterations`. * [tf\_mandelbrot](/sql/data-manipulation-dml/system-table-functions/tf_mandelbrot#tf_mandelbrot) * [tf\_mandelbrot\_float](/sql/data-manipulation-dml/system-table-functions/tf_mandelbrot#tf_mandelbrot_cuda) * [tf\_mandelbrot\_cuda](/sql/data-manipulation-dml/system-table-functions/tf_mandelbrot#tf_mandelbrot_cuda) * [tf\_mandelbrot\_cuda\_float](/sql/data-manipulation-dml/system-table-functions/tf_mandelbrot#tf_mandelbrot_cuda_float) ## tf\_mandelbrot ``` SELECT * FROM TABLE( tf_mandelbrot( x_pixels => , y_pixels => , x_min => , x_max => , y_min => , y_max => , max_iterations => ) ) ``` | Parameter | Data Type | | ---------------- | -------------- | | `x_pixels` | 32-bit integer | | `y_pixels` | 32-bit integer | | `x_min` | DOUBLE | | `x_max` | DOUBLE | | `y_min` | DOUBLE | | `y_max` | DOUBLE | | `max_iterations` | 32-bit integer | **Example** ![](https://files.buildwithfern.com/heavyai.docs.buildwithfern.com/heavyai/6666a31d1a19bcfcd8c24bad50eba0ea502749a811b0fb7ee897e4117c09c228/docs/assets/heavy_mandelbrot.png) ## tf\_mandelbrot\_cuda ``` SELECT * FROM TABLE( tf_mandelbrot_cuda( , , , , , , ) ) ```
ParameterData TypeDescription
x_pixels32-bit integer
y_pixels32-bit integer
x_minDOUBLE
x_maxDOUBLE
y_minDOUBLE
y_maxDOUBLE
max_iterations32-bit integer
## tf\_mandelbrot\_float ``` SELECT * FROM TABLE( tf_mandelbrot_float(, , , , , , ) ) ```
ParameterData TypeDescription
x_pixels32-bit integer
y_pixels32-bit integer
x_minDOUBLE
x_maxDOUBLE
y_minDOUBLE
y_maxDOUBLE
max_iterations32-bit integer
## tf\_mandelbrot\_cuda\_float ``` SELECT * FROM TABLE( tf_mandelbrot_cuda_float( , , , , , , ) ) ```
ParameterData TypeDescription
x_pixels32-bit integer
y_pixels32-bit integer
x_minDOUBLE
x_maxDOUBLE
y_minDOUBLE
y_maxDOUBLE
max_iterations32-bit integer