wave opなし → table(引数だけで決まる op —— 画像やデータの入力を取らない)import fullseye as fs; fs.ledger.wave_grating_orders(pitch_um=1.6, wavelength_nm=550.0, sin_in=0.0, orders=(-2, -1, 1, 2)) (実装を直接呼ぶなら import mathops; mathops.wave_grating_orders(pitch_um=1.6, wavelength_nm=550.0, sin_in=0.0, orders=(-2, -1, 1, 2))、台帳から引くなら opsmath.get("wave_grating_orders"))Where a grating sends each order: d (sin_out - sin_in) = m lambda solved for the angle.
The companion to the existing grating_wavelengths (which solves the same
identity for lambda): given the pitch and the wavelength, this returns the
outgoing direction of each order, and marks the orders that are
evanescent — |sin_out| > 1 means that order does not propagate, which
is why a CD shows fewer colours at grazing incidence.
★Why this earns its place: the two ops invert one another, so a round trip
must return the wavelength it started from; and the angles can be compared
against the peak positions of a simulated far field (the existing
fraunhofer_pattern of a real grating aperture), which knows nothing about
the grating equation.
Returns a table: order, sin_out, angle_deg (NaN when
evanescent), propagates.
Raises ValueError: non-positive pitch or wavelength; |sin_in| > 1;
order 0 alone with no others (it is always the specular direction — allowed,
but a caller asking only for it probably meant something else); non-finite input.
mathops の全 op は入力を検証してから計算する(黙って通さない):
ValueError — float64 への強制変換は虚部を黙って捨てる(numpy は ComplexWarning だけ出して「もっともらしく間違った」実数を返す)。.real/.imag/abs() を明示するか、複素対応の complexops を使う。ValueError — マスクを剥がして下の生値を使う暗黙変換を拒否。埋める/落とすを明示する。ValueError(件数を明示して拒否 — 結果全体に伝播するため)。ValueError。reshape を明示する)。stat_histogram の bins は mathops.MAX_ELEMENTS(2^26 ≈ 6700 万要素)超で ValueError。py -3.11 examples/poc_beats_fringes_and_screens.pypy -3.11 examples/poc_spectrometer_illumination.pytable を入力に取れる)dynsys_poincare_section · dwt_inverse · chebyshev_eval_nd
wave)wave_membrane_mode · wave_mode_frequencies · wave_nodal_lines · wave_two_slit · wave_fringe_period
Provenance: mathops.py — MATH operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.