# 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](#tf_mandelbrot)
* [tf\_mandelbrot\_float](#tf_mandelbrot_cuda)
* [tf\_mandelbrot\_cuda](#tf_mandelbrot_cuda)
* [tf\_mandelbrot\_cuda\_float](#tf_mandelbrot_cuda_float)

## tf\_mandelbrot

```
SELECT * FROM TABLE(
  tf_mandelbrot( 
    x_pixels => <x_pixels>,
    y_pixels => <y_pixels>,
    x_min => <x_min>,
    x_max => <x_max>,
    y_min => <y_min>,
    y_max => <y_max>,
    max_iterations => <max_iterations>
  )
)  
```

<table><thead><tr><th width="231">Parameter</th><th>Data Type</th><th data-hidden>Description</th></tr></thead><tbody><tr><td><code>x_pixels</code></td><td>32-bit integer</td><td></td></tr><tr><td><code>y_pixels</code></td><td>32-bit integer</td><td>\</td></tr><tr><td><code>x_min</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>x_max</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>y_min</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>y_max</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>max_iterations</code></td><td>32-bit integer</td><td></td></tr></tbody></table>

**Example**

<figure><img src="/files/9iMzJOkGkMMtMNOccbNP" alt=""><figcaption><p><strong>Computed Mandelbrot set using the HEAVY.AI Vega demo</strong></p></figcaption></figure>

## tf\_mandelbrot\_cuda

```
SELECT * FROM TABLE(
  tf_mandelbrot_cuda( <x_pixels>, <y_pixels>, <x_min>, <x_max>, <y_min>, <y_max>, <max_iterations>
  )
)
```

<table><thead><tr><th>Parameter</th><th>Data Type</th><th data-hidden>Description</th></tr></thead><tbody><tr><td><code>x_pixels</code></td><td>32-bit integer</td><td></td></tr><tr><td><code>y_pixels</code></td><td>32-bit integer</td><td></td></tr><tr><td><code>x_min</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>x_max</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>y_min</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>y_max</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>max_iterations</code></td><td>32-bit integer</td><td></td></tr></tbody></table>

## tf\_mandelbrot\_float

```
SELECT * FROM TABLE(
  tf_mandelbrot_float(<x_pixels>, <y_pixels>, <x_min>, <x_max>, <y_min>, <y_max>, <max_iterations>
  )
)
```

<table><thead><tr><th>Parameter</th><th>Data Type</th><th data-hidden>Description</th></tr></thead><tbody><tr><td><code>x_pixels</code></td><td>32-bit integer</td><td></td></tr><tr><td><code>y_pixels</code></td><td>32-bit integer</td><td></td></tr><tr><td><code>x_min</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>x_max</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>y_min</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>y_max</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>max_iterations</code></td><td>32-bit integer</td><td></td></tr></tbody></table>

## tf\_mandelbrot\_cuda\_float

```
SELECT * FROM TABLE(
  tf_mandelbrot_cuda_float( <x_pixels>, <y_pixels>, <x_min>, <x_max>, <y_min>, <y_max>, <max_iterations>
  )
)
```

<table><thead><tr><th width="260">Parameter</th><th>Data Type</th><th data-hidden>Description</th></tr></thead><tbody><tr><td><code>x_pixels</code></td><td>32-bit integer</td><td></td></tr><tr><td><code>y_pixels</code></td><td>32-bit integer</td><td></td></tr><tr><td><code>x_min</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>x_max</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>y_min</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>y_max</code></td><td>DOUBLE</td><td></td></tr><tr><td><code>max_iterations</code></td><td>32-bit integer</td><td></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.heavy.ai/v8.3.0/sql/data-manipulation-dml/system-table-functions/tf_mandelbrot.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
