engineering.resistor_color_code
Decode 4-band or 5-band resistor color codes to calculate resistance in ohms and tolerance percentage from ordered color names.
Instructions
저항기 4밴드 또는 5밴드 컬러코드를 해독해 저항값(Ω)과 허용오차(%)를 구한다. 4밴드는 [자릿수1, 자릿수2, 승수, 허용오차], 5밴드는 [자릿수1, 자릿수2, 자릿수3, 승수, 허용오차] 순서의 영문 색상명(black, brown, red, orange, yellow, green, blue, violet, gray, white, gold, silver)이며 대소문자와 앞뒤 공백은 무시한다. 오용 주의: 6밴드(온도계수)는 지원하지 않으며 읽는 방향이 반대면 값이 틀린다.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bands | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | 서버가 붙이는 영수증(integrity), 엔진, 힌트 | |
| trace | Yes | 계산 근거(tool, formula, inputs, steps, output) | |
| tolerance_pct | Yes | ||
| resistance_ohm | Yes |