costa.math

Numerical & GPU engineer

Infinite detail. Finite precision.

See the work →Taking numerical and GPU contracts

Rafael Costa·Numerical engineer

Every pixel is a number c. Start at zero, keep squaring and adding c: if it stays small forever, c is in the set (black). The colour is how fast it escapes.

work

Zoomed in, all the way

Eight solvers, kernels and visualisations. The badge is the speed-up or accuracy each one reached.

Self-similar meshing10⁷ facets

Self-similar meshing

Architecture studio

Recursive meshing for fractal façades, watertight and ready for fabrication.

2025
N-body on the GPU40× faster

N-body on the GPU

Observatory consortium

A Barnes–Hut gravity solver in CUDA for galaxy-merger simulations.

2024
Spiral growth solver1e-9 error

Spiral growth solver

University lab

An adaptive ODE solver for shell growth models with guaranteed error bounds.

2023
Coastline erosion model100-year runs

Coastline erosion model

Environmental agency

A shallow-water solver that projects coastline change under sea-level scenarios.

2022
Spirograph renderer120 fps

Spirograph renderer

Open source · 3.3k ★

An interactive curve renderer used in maths classrooms in 40 countries.

2021
Fern L-system engine2M plants

Fern L-system engine

Game studio

Instanced procedural vegetation with LOD that grows in real time.

2020
Option-pricing kernels0.3 µs/option

Option-pricing kernels

Trading firm

SIMD Monte Carlo and PDE pricers with reproducible random streams.

2019
Fluid swirl visualiser4K live

Fluid swirl visualiser

Science museum

A real-time Navier–Stokes exhibit visitors stir with their hands.

2018
services

Fast, stable, honest

Numerical code that is fast, stable and honest about its error — for research groups, engineering firms and products built on maths.

Solver development

From · R$90k — PDE and ODE solvers designed for your physics and hardware.

GPU porting

From · R$70k — Existing code moved to CUDA or Metal with matching results.

Accuracy review

From · R$45k — Rounding, cancellation and stability analysed and fixed.

Performance audit

Fixed · R$25k — A week of profiling with a ranked list of speed-ups.

newton's method

Where does each guess land?

Newton's method finds a root by sliding down tangents. Colour every starting point by the root it reaches and the borders turn out to be fractal: near a boundary, a tiny change in the guess sends you somewhere else entirely. Drag the roots.

how I work

Zoom in carefully

  1. Frame the problem

    The equations, the data and the accuracy the answer really needs.

  2. Derive

    Choose methods with known stability and error behaviour.

  3. Compute

    Fast kernels on the right hardware, with reference results alongside.

  4. Verify

    Convergence tests, manufactured solutions and error budgets you can trust.

Rafael Costa
Rafael Costa · Numerical engineer
about

I make maths run fast and stay right.

I'm Rafael, a numerical engineer in São Paulo. For thirteen years I've written solvers and kernels for astronomy, finance, climate and graphics — mostly on GPUs.

Speed is the easy part. The craft is knowing how wrong the answer can be: rounding, cancellation, stability, and the places where float32 quietly stops telling the truth.

CUDA · MetalC++ · RustJulia · PythonPDE · ODEError analysis
13 yrsin numerical code
40×best GPU speed-up
15 digitsof double precision
code review

In their own words

Rafael's solver ran our galaxy mergers forty times faster and we trust the answers more.
Dr. Ana RibeiroLead scientist, observatory consortium
He found a cancellation bug that had skewed our prices for years. Calmly, with a proof.
Lucas AlmeidaHead of quant engineering, trading firm
Rigorous, patient and genuinely fun to work with.
Prof. Marina SouzaUniversity lab
clients

Teams whose numbers I've made trustworthy

  • Observatory consortium
  • Environmental agency
  • Trading firm
  • Game studio
  • Architecture studio
  • University lab
  • Science museum
  • Energy company

talks & awards

2024Floats lie, a littleTalk · JuliaCon
2023Barnes–Hut in CUDATalk · GTC
2021Best paperNumerical methods conference
2019Teaching awardUniversity of São Paulo
contact

Send me your equation

Tell me about the model, the hardware and how accurate the answer must be. I reply within a day.

Based in
São Paulo, Brazil · remote
Phone
+55 11 0000 0015
Local time
· local
Elsewhere
InstagramBehanceDribbbleLinkedIn
I'm looking for
Start

Made withSitesfareReport