AI Demos Research — the structured-intelligence platform. Every verdict on these pages opens to the execution behind it.
Graded 22 November 2026

Can Datalab convert a PDF containing mathematical equations to Markdown?

Datalab returned all six numbered equations of the three-page technical note as LaTeX display math, in place and with their numbers, matching the PDF symbol for symbol. Symbols inside the prose also came back as math markup, and no equation was turned into plain text.

1 of 1 test case passed

Every test case in this scenario has a result.

Pass rate100%1 of 1 gradable
Coverage1 of 1test case with a result
1PassDid everything it was expected to do.
0FailNo test case failed.
0Not gradableEvery result here could be graded.
0UntestedEvery test case in this scenario has a result.
The pass rate is a summary. The evidence is the test case below: what we sent, what we checked, what the tool returned, and the proof.

The test case

Each test case is judged on its own: Pass, Fail, Not gradable, or Untested. The scenario result above is based on this test case.

Equations — math markup or honest fallbackPassEvidence
What we sent

We uploaded the complete three-page technical note PDF to Datalab's Convert API, asking for Markdown output with no other option set, and saved the Markdown it returned.

InputDocument (PDF)
Input PDF: the three-page technical note with six numbered equations
Open the PDF ↗
What the tool returned

Returned Markdown: the six equations as LaTeX display math with their numbers

Copied from Output file (Markdown), lines 21, 23–65

Markdownthe whole file · cited lines 21 and 23–65 marked


# A one-dimensional model of tidal attenuation in the Braithe channel

Technical note TIH/TN/18 · January 2026

*R. K. Sandiman and H. Vale*

---

## 1 Introduction

The tide entering the Braithe is attenuated over the eleven kilometres between the bar and Braithe Bridge, and the attenuation is large enough to matter to anyone predicting water levels in the upper estuary. This note sets out the one-dimensional model the Institute has used since 2018, states the approximation on which the working formula rests, and compares the result with the gauge record at three stations.

Nothing here is new. The intention is to have the derivation, the assumptions and the coefficients in one place, because the formula has been quoted in Partnership papers without them.

## 2 Governing equations

Take the channel as a single reach of slowly varying cross-section and neglect lateral inflow. Conservation of mass gives

$$\frac{\partial A}{\partial t} + \frac{\partial Q}{\partial x} = 0 \quad (1)$$

where  $A$  is the cross-sectional area below the free surface and  $Q$  the discharge through it. Conservation of momentum, with friction represented in the Manning form, gives

$$\frac{\partial Q}{\partial t} + \frac{\partial}{\partial x} \left( \frac{Q^2}{A} \right) + gA \frac{\partial \eta}{\partial x} + \frac{g n^2 Q |Q|}{A R^{4/3}} = 0 \quad (2)$$

in which  $\eta$  is the surface elevation above mean sea level,  $n$  is Manning's coefficient,  $R$  the hydraulic radius  $R = A/P$  for wetted perimeter  $P$ , and  $g$  the acceleration due to gravity. The friction term is the only nonlinear one that matters over the range of interest.

## 3 Attenuation of the leading harmonic

For a channel of nearly uniform depth the leading semidiurnal harmonic decays close to exponentially with distance upstream, so that

$$\eta(x, t) = \eta_0 e^{-\mu x} \cos(\omega t - kx) \quad (3)$$

with  $\eta_0$  the amplitude at the bar,  $\omega$  the angular frequency of the harmonic,  $k$  the wavenumber and  $\mu$  the attenuation coefficient. Linearising the friction term by the Lorentz method and collecting terms gives

$$\mu = \frac{\omega}{c} \left( \frac{\chi}{2(1 + \chi^2)} \right)^{1/2}, \quad \chi = \frac{8 n^2 c \eta_0}{3\pi h^{4/3}} \quad (4)$$

where  $c$  is the frictionless wave speed and  $h$  the mean depth. The second expression is the friction parameter; it is small in the lower reach and approaches unity above Harrowby Reach, which is where the exponential form begins to fail.

## 4 Application to the Braithe

Taking the mean depth as eleven metres below the bar and four metres at the bridge, with Manning's coefficient at the value fitted in 2018, the formula reproduces the observed amplitude at Vardenne Quay to within four per cent and at Harrowby Reach to within nine. At Braithe Bridge it overestimates the amplitude, and the discrepancy grows through the spring tides, which is the behaviour the friction parameter predicts.

A two-reach treatment with separate depths would probably remove most of the error at the bridge. It has not been attempted here because the gauge record above Harrowby Reach is too short to fit a second coefficient with any confidence.

## 5 Coefficients

Manning's coefficient is not constant with depth in a channel of this kind, and the single fitted value used above is a compromise. Fitting the 2018 record with a depth-dependent form gives

$$n(h) = n_\infty + \frac{b}{h^{1/3}} \quad (5)$$

with  $n_\infty$  the deep-water value and  $b$  a bed constant. The fit is better in the lower reach and no better at the bridge, which suggests that the error there is not in the friction term at all.

The two constants were fitted to the 2018 record and have not been refitted since. Refitting on the four years now available would be worth doing; the Institute's expectation is that the deep-water value will move very little and the bed constant appreciably, because it is carrying the shallow reaches where the record has improved most.

## 6 Limitations

Three limitations should be stated plainly. The first is the one-dimensional assumption, which fails where the channel divides above Harrowby Reach. The second is the neglect of the freshwater inflow, which is small in summer and not small after rain. The third is the linearisation itself, which is a poor approximation once the friction parameter approaches unity - that is, in exactly the reach where the model is least accurate.

The error measure quoted in the previous section is

$$\varepsilon = \frac{|\eta_o - \eta_m|}{\eta_o} \quad (6)$$

taken over the spring-neap cycle at each gauge, with  $\eta_o$  the observed amplitude and  $\eta_m$  the modelled one. It is a crude measure and it flattens the model at the bar, where the amplitude is large and the absolute error is not.

None of this is an argument against using the formula, which is quick, transparent and good enough for the purposes the Partnership puts it to. It is an argument for quoting it with the reach and the tidal range attached, which the papers that quote it have not always done.

## References

- Sandiman, R. K. (2018). Tidal propagation in the Braithe: a first fit. Tarnbeck Institute internal report TIH/IR/09.
- Vale, H. and Croyde, P. (2021). The Harrowby Reach gauge, 2015 to 2020. *Journal of Estuarine Hydrology* 44, 218-31.
- Prosser, A. (2009). Friction coefficients for the Braithe channel. Braithe Harbour Board, unpublished.
Open the Markdown file ↗

API response: the completed conversion of all three pages, carrying the same Markdown

Copied from Output file (JSON), status

Text
complete
Open the whole JSON file ↗
Expected vs. Found
✓Expected: Equations come back as math markup, such as LaTeX or MathML, or as an honest fallback, never as garbled prose.Found: All six numbered equations came back as LaTeX display math in place, numbered (1) to (6), matching the PDF symbol for symbol; inline symbols were math markup too.
Supporting proof
Proof 1Captured file (JSON)
Request as sent: the complete PDF uploaded with only Markdown output requested
Cited values2 values from this file
file
{ "name": "technical_note_TIH-TN-18.pdf", "bytes": 241158, "sha256": "f3d69b6d9d2191c5806a426fd4ea5e209dcd7cf693ad6abe67a5d18a014b9fd6" }
form
{ "output_format": "markdown" }
Show the whole file (1 KB)
JSON
{
  "method": "POST",
  "url": "https://www.datalab.to/api/v1/convert",
  "headers": {
    "X-API-Key": "***masked***"
  },
  "form": {
    "output_format": "markdown"
  },
  "file": {
    "name": "technical_note_TIH-TN-18.pdf",
    "bytes": 241158,
    "sha256": "f3d69b6d9d2191c5806a426fd4ea5e209dcd7cf693ad6abe67a5d18a014b9fd6"
  }
}
Open the JSON file ↗
Proof 2Captured file (JSON)
Run record: default pipeline, Markdown output, and the job completing in one poll
Cited values2 values from this file
config_note
default pipeline: `mode` not set (product default `balanced`), output_format=markdown
extra › polls
[ { "t": 4.7, "http": 200, "status": "complete", "progress": 100 } ]
Show the whole file (2 KB)
JSON
{
  "product": "Datalab",
  "subject_slug": "datalab",
  "test_case": "TC37 · Equations — math markup or honest fallback",
  "task": "86bd5xtaz",
  "test_case_version_id": "d13b7cdb-8487-4aee-9b5b-95843018e50a",
  "input": {
    "artifact_id": "7d7f9857-a9ff-4bf3-b956-d712c8f07789",
    "sha256": "f3d69b6d9d2191c5806a426fd4ea5e209dcd7cf693ad6abe67a5d18a014b9fd6",
    "line": "AI_DEMOS_INPUT artifact=7d7f9857-a9ff-4bf3-b956-d712c8f07789 sha256=f3d69b6d9d2191c5806a426fd4ea5e209dcd7cf693ad6abe67a5d18a014b9fd6",
    "url": "https://d3epheqghktydj.cloudfront.net/research-artifacts/f3d69b6d9d2191c5806a426fd4ea5e209dcd7cf693ad6abe67a5d18a014b9fd6.pdf",
    "name": "technical_note_TIH-TN-18.pdf"
  },
  "endpoint": "https://www.datalab.to/api/v1/convert",
  "config_note": "default pipeline: `mode` not set (product default `balanced`), output_format=markdown",
  "surface": "API",
  "tool_version": "not exposed",
  "plan_tier": "not exposed by the API",
  "run_time": "2026-11-22 11:03 IST",
  "latency_s": 4.7,
  "pages": 3,
  "cost": "1.2¢ (Datalab cost_breakdown.final_cost_cents)",
  "output_file": "output.md",
  "output_chars": 5448,
  "output_sha256": "a8c4248e31d595f7d9a55b3317453f005f8efe31de70881e0a42dcb4a41da95c",
  "response_file": "api_response.json",
  "request_file": "request.json",
  "run_file": "run.json",
  "source_renders": ["source_page_1.png", "source_page_2.png", "source_page_3.png"],
  "extra": {
    "submit_response": {
      "success": true,
      "error": null,
      "request_id": "27l4h-uz9leaTy3KwGOA1w",
      "request_check_url": "https://www.datalab.to/api/v1/convert/27l4h-uz9leaTy3KwGOA1w",
      "versions": null,
      "checkpoint_reused": null
    },
    "polls": [
      {
        "t": 4.7,
        "http": 200,
        "status": "complete",
        "progress": 100
      }
    ]
  }
}
Open the JSON file ↗
Why this result

The test asks whether equations come back as math markup or an honest fallback rather than garbled prose. Every numbered equation and the inline symbols came back as LaTeX matching the source, and none became prose, so it is a Pass.

Also observed in this test case

One prose word changed. In the sentence right after equation (6), the source word "flatters" came back as "flattens", reversing that sentence's meaning.

Tested by Pradip Nichite · evidence dated 22 November 2026

Configuration and setup

How this tool was set up for the run and what the test needed in place. Each row is a fact from the run's records; a fact the records do not hold is left out, not guessed.

Software that produced the output
Datalab
Build or version
Not exposed by the hosted product
Plan or tier
not exposed by the API
Surface
API
Set up before the run
A three-page technical note PDF with six numbered display equations and inline symbols was sent whole to Datalab's Convert API, using the product's default pipeline in one pass with no extra options.
Output format
Markdown
Tested
22 November 2026 · Pradip Nichite

How this scenario is graded

How we decide Pass, Fail and Not gradable. The same rules apply to every tool tested on this scenario.

How results are decided

Each test case gets one result per tool: Pass, Fail or Not gradable. A test case we haven't run yet shows Untested. There are no partial results.

The rules
  • Pass: the tool did everything the test expected, and nothing it said contradicts the correct answer.
  • Fail: at least one expected behaviour clearly didn't happen; the test case's result says which one and quotes the tool.
  • Not gradable: our evidence couldn't settle the outcome (for example a record we needed is missing). It is never counted as a fail, and the test case's result says what's missing.

Where this sits in the benchmark

This page is one cell of a larger study: one tool, one scenario. Only this benchmark's frame appears here.

History of this result

What has happened to this result since it was first published. Runs and grades are never overwritten: a retest or a re-grade publishes a new result and keeps the earlier one readable.

from the publication record
25 November 2026First publishedConverting a complex PDF into clean Markdown with a hosted API v1

Act on this result

Nothing filed here edits the run or the grade. A challenge opens a review, and a review can produce a new run or a re-grade — which becomes the current result and leaves this one in the history.

This matches what I see

You run the same kind of test against your own setup and get the same behaviour.

Agree →
This does not match

Yours behaves differently. Tell us what you got, with a screenshot if you have one.

Disagree →
Point out an issue

Something here is wrong — a reference value, a transcription, a grade.

Report an issue →
Request a retest

On a newer build, a larger dataset, or your own setup.

Request a retest →
We have fixed this

Tell us what changed and we schedule a rerun of the failing test case. The old result stays as history.

Vendor notice →
Filed against this evidenceNothing yet. Challenges, counter-evidence and fix notices appear here with their outcome, and stay on the page after they are resolved.
Cite this result
aidemos.com/benchmarks/pdf-to-markdown-apis/results/datalab/a-document-containing-mathematical-equations · 1 pass · 0 fail · coverage 1/1 · graded 2026-11-22

The same record is available as structured data through the AI Demos MCP server, with the counts, the coverage and every per-test-case reason carried as fields.

Verify the proof files

These files support this result. Open a file to inspect the original evidence.

Input · Document (PDF) ↗application/pdf · 236 KB
Output file (Markdown) ↗text/markdown; charset=utf-8 · 5 KB
Output file (JSON) ↗application/json · 6 KB
Proof 1 · Captured file (JSON) ↗application/json · 0 KB
Proof 2 · Captured file (JSON) ↗application/json · 2 KB
File fingerprints (SHA-256)

A fingerprint identifies the exact file used for this result.

Input · Document (PDF)f3d69b6d9d2191c5806a426fd4ea5e209dcd7cf693ad6abe67a5d18a014b9fd6
Output file (Markdown)e58e5cca1d46f46bc7b378e96397e9812a9e37d95f9d218f75252f32650ebd9c
Output file (JSON)3f5177d030d60780bbcd123e5fe292846fc232f7f1045a50f4a9515fe7c7034d
Proof 1 · Captured file (JSON)0274475ec23c2fb93cf0f33ce90f99bbe843bf3ed1281d9a040eba923861dab4
Proof 2 · Captured file (JSON)a68687bf257bf89a9672cf77f44b7354166b4d592a21ad438cb4b6758157767a