Skip to content

Commit

Permalink
mandel
Browse files Browse the repository at this point in the history
  • Loading branch information
vmchale committed Feb 23, 2025
1 parent ed065be commit 74ad1cb
Show file tree
Hide file tree
Showing 2 changed files with 7,684 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/apple-by-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,24 @@ in the NumPy ecosystem.
nb/lorenz.html
```

### Mandelbrot Set

Apple has no support for complex numbers so we have to implement addition,
square, absolute value ourselves.

Note the idiom

```
(frange _2.5 1 700) [(x,y)]⊗ (frange _1 1 400)
: Arr (700 × 400) (float * float)
```

to get a grid of tuples.

```{.include}
nb/mandel.html
```

## Statistics

Apple is capable of statistical computing, via the program suggested by [Ewart Shaw](https://www.jsoftware.com/papers/jhyper.pdf).
Expand Down
Loading

0 comments on commit 74ad1cb

Please sign in to comment.