science.bragg
Computes the missing wavelength, interplanar spacing, or Bragg angle θ from nλ = 2d sin θ using order and the other two values, with degree/radian input and high-precision decimal results.
Instructions
브래그 회절 조건 n*lambda = 2 d sin(theta)에서 파장, 면간격, 회절각 중 하나를 구한다. order는 양의 정수이고 wavelength, spacing, angle 중 정확히 하나를 생략하며 나머지는 Decimal 문자열이다. 파장과 면간격은 같은 길이 단위로 넣고, angle은 unit='deg'(기본) 또는 'rad'이며 브래그각 theta 기준이다(2theta 아님). mpmath 40자리 계산 후 유효숫자 20자리로 돌려주며 sin theta가 1을 넘는 조합은 오류다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | deg | |
| angle | No | ||
| order | Yes | ||
| spacing | No | ||
| wavelength | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | ||
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| angle | No | ||
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| spacing | No | ||
| wavelength | No |