# Rectangular Aperture Complex Fresnel Near-Field Diffraction

> Rectangular Aperture Complex Fresnel Near-Field Diffraction is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-17).

Computes complex near-field aperture diffraction amplitudes and relative intensities at specified observation points for a rectangular aperture using Fresnel diffraction theory.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-GEO-INDUSTRY-B009/rectangular-aperture-complex-fresnel-near-field-diffraction?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rectangular-aperture-complex-fresnel-near-field-diffraction-0ff301a4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D_5-rv5uc9DxNvkdlmP4H

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rectangular-aperture-complex-fresnel-near-field-diffraction-0ff301a4 -d '<json body>'
```

Example prompt: Can you compute the Fresnel near-field diffraction pattern for a rectangular aperture that spans -0.5mm to 0.5mm in x and -1mm to 1mm in y, using a wavelength of 632.8nm and a propagation distance of 0.05 meters? I need the complex amplitude and intensity at observation points (0,0), (0.001,0), and (0.002,0.001).

## When to prefer this

Use this endpoint when you need rigorous complex-amplitude Fresnel near-field diffraction computation for a rectangular aperture at specified discrete observation points, especially when phase information is required alongside intensity. Prefer this over far-field (Fraunhofer) approximations when the propagation distance is not much larger than the aperture dimensions, or when precise near-field intensity distributions are needed for optical system design, laser beam profiling, or experimental validation.

## Known failure modes

- Wavelength out of range (must be between 1e-9 and 0.001 meters)
- Propagation distance out of range (must be between 0.001 and 1,000,000 meters)
- Aperture coordinates out of range (each value must be between -10 and 10)
- Observation point coordinates out of range (must be between -10,000 and 10,000)
- Too many observation points (maximum 32 allowed)
- Malformed or missing fresnelAperture object in request body
- Payment not provided or insufficient (requires $0.003 USDC via x402)

## How this service works

Compute complex near-field aperture diffraction and relative intensity at supplied observation points.

## Output

Returns complex diffraction amplitudes and relative intensities at each specified observation point, computed via Fresnel near-field diffraction theory for the given rectangular aperture, wavelength, and propagation distance. The output enables analysis of the full near-field diffraction pattern including phase and amplitude information.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "required": [
    "fresnelAperture"
   ],
   "properties": {
    "fresnelAperture": {
     "type": "object",
     "required": [
      "data",
      "claim"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "wavelength",
        "propagation_distance",
        "rectangle",
        "observations"
       ],
       "properties": {
        "rectangle": {
         "type": "array",
         "items": {
          "type": "number",
          "maximum": 10,
          "minimum": -10
         },
         "maxItems": 4,
         "minItems": 4
        },
        "wavelength": {
         "type": "number",
         "maximum": 0.001,
         "minimum": 1e-9
        },
        "observations": {
         "type": "array",
         "items": {
          "type": "array",
          "items": {
           "type": "number",
           "maximum": 10000,
           "minimum": -10000
          },
          "maxItems": 2,
          "minItems": 2
         },
         "maxItems": 32,
         "minItems": 1
        },
        "propagation_distance": {
         "type": "number",
         "maximum": 1000000,
         "minimum": 0.001
        }
       },
       "additionalProperties": false
      },
      "claim": {}
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rectangular-aperture-complex-fresnel-near-field-diffraction-0ff301a4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
