10 V の電源にいくつかの抵抗を接続したとき、なぜあるノードの電圧が約 4.84 V になるのでしょうか?電流が抵抗を通り過ぎると「消費」されるのでしょうか?オシロスコープ上で同じく 5 V と表示されている2つの波形で、なぜ発熱が異なるのでしょうか?これらの疑問には、電荷、エネルギー、極性、接続関係を明確に区別する必要があります。ここではまず量と記号の体系を整え、完全な回路を用いてオームの法則、KCL(キルヒホッフの電流則)、KVL(キルヒホッフの電圧則)、および電力計算を結びつけます。
調べるべき質問 重要な関係式 参照箇所
電流と電圧はそれぞれ何を記述するか i = dq/dt、電圧は単位電荷あたりのエネルギー差 電荷から回路量へ
負の電流を計算しても誤りか 極性は基準の約束であり、負号は逆向きを意味する 基準極性と電力
直列・並列をどう識別するか ノードと分岐路を見る。描画の見た目に惑わされない 接続関係から方程式を導く
解いた結果は自己整合性があるか KCL、KVL、電力の三重チェック 数値による完全な導出
峰值から直接発熱を計算できるか 平均電力と RMS(実効値) 波形と実効値
電荷から回路量へ
電荷、電場、電位差
電荷は q または Q で表され、単位はクーロン (C) です。素電荷の大きさ e = 1.602176634 × 10⁻¹⁹ C は SI における厳密に定義された値です。電子が帯びているのは +e ではなく −e です。1 C の電荷量は、約 6.24 × 10¹⁸ 個の素電荷に相当します。BIPM:SI 定義定数
電場は空間中で電気力を記述するベクトルであり、正の検針電荷が受ける力を電荷量で割ったものとして定義されます:E = F/q 。単位は N/C で、V/m とも等価です。真空中の静止した2点電荷間のクーロン力の大きさは k|q₁q₂|/r² です。定数 k は約 8.99 × 10⁹ N·m²/C² です。距離が2倍になると力の大きさは4分の1になります。方向は位置と電荷の正負に依存するため、このスカラー式だけを見て判断することはできません。
静電条件下では、電位を用いて電場を記述できます:u_AB = φ_A − φ_B = ∫(AからB) E·dl。したがって電圧は常に2点間の量です。正電荷 q が A から B へ移動するとき、電場がなす仕事は q·u_AB であり、その電気エネルギーは同じ量だけ減少します。1 V = 1 J/C ですが、移動方向を無視して「1 C を移動させるごとに 1 J が『消費』される」と理解するのは誤りです。
回路中の 0 V は選択された基準ノードであり、必ずしも大地(グランド)である必要はなく、電荷が存在しないことを意味するのでもありません。すべてのノードの電位に同時に 100 V を加えても、2点間の電圧は変化せず、理想回路における電流も変化しません。筐体、人体、または他の回路に関連する場合は、それらが基準ノードに対して持つ実際の電位差を明確にする必要があります。
電流は通過の速さを、電圧はエネルギー差を記述する
瞬時電流は i = dq/dt です。一定の時間間隔では、平均電流は Δq/Δt となります。1 A = 1 C/s です。一定の 2 mA が 3 秒間持続する場合、断面を通過する電荷量は 6 mC です。金属中の伝導電子の平均的なドリフト方向は、慣習的な電流方向と逆向きです。他の媒質では正イオンなどのキャリアによって伝導されることもあり、「電流」を電子流として定義すべきではありません。
抵抗での発熱は電気を消費するものであり、それを通過する電流を徐々に減少させるものではありません。定常状態の直列回路では、各断面の電流は同じです。もしある場所で流入する電荷が流出する電荷より多く、かつそれが持続すると、その場所に電荷が蓄積して電場が変化し、元の定常状態を維持できなくなります。
「水圧—水流」の比喩は電圧と電流を区別するのに役立ちますが、回路信号の伝播は、電源から負荷まで同じ電子が移動するのを待つことではありません。伝播は電磁界および導体周囲の媒質に関係しており、電子のドリフト速度からスイッチの応答時間を推論することはできません。
抵抗とオームの法則の適用条件
理想的な線形抵抗は u = Ri を満たし、R は正であり、使用されるモデル内では電流に依存しません。コンダクタンス G = 1/R で、単位はジーメンス (S) です。均一で断面が一定の導体は、R = ρL/A で近似できます。導線を長くすると抵抗が増加し、断面面積を大きくすると抵抗は低下します。抵抗率 ρ の単位は Ω·m で、材料や温度などの条件によって変化します。
一般的な素子については、ある動作点で u/i を計算できますが、これが伏安特性曲線全体が線形であることを証明するものではありません。微小な擾乱に対する微分抵抗 du/di は、u/i と異なる可能性があります。ダイオードは通常、固定された R で記述できませんが、半導体材料で作られた抵抗は一定の範囲内でオーム的に近似できる場合があります。「すべての半導体には適用できない」というのは正しい境界ではありません。
基準極性と電力
まず電圧の正負端と電流の矢印を選び、式を立てます。受動符号規約 を採用する場合、電流の基準方向は電圧の正端へ入る方向とし、瞬時吸収電力は p = ui とします。p > 0 はエネルギーを吸収していることを、p < 0 は外部へエネルギーを供給していることを示します。電源が放電している場合にも同じ規則で計算でき、その結果は負になります。
量 一般式 簡略化できる条件
電荷の変化 Δq = ∫i dt 一定電流の場合、IΔt
瞬時電力 p(t) = u(t)i(t) 直流一定の場合、P = UI
吸収エネルギー ΔE = ∫p dt 一定電力の場合、PΔt
理想抵抗の損失 p = i²R = u²/R u = Ri から導かれ、任意の素子に安易に適用不可
仮定の矢印方向に沿って計算した結果が −0.2 A である場合、実際の電流は逆向きに 0.2 A 流れていることを意味します。元の記号を保持したまま計算に続けてください。矢印を変えながら同時に負号を残さないでください。1 W = 1 J/s、1 kWh = 3.6 × 10⁶ J です。エネルギーと電力は異なる量であり、バッテリーの Wh と機器の W は直接加算できません。
接続関係から方程式を導く
直並列はノードで見る
理想導線によって直接接続された点は同じノードに属します。2つの素子が首尾よく接続され、中間ノードに他の分流路がない場合にのみ直列とみなせ、電流は同じで、等価抵抗は R₁ + R₂ となります。2つの素子の両端がそれぞれ同じ一対のノードに接続されている場合にのみ並列とみなせ、電圧は同じで、等価コンダクタンスは 1/R₁ + 1/R₂ となります。
したがって、2つの正の抵抗が並列接続されている場合、R_eq = R₁R₂/(R₁ + R₂) となり、どちらか一方の抵抗値よりも小さくなります。ブリッジ回路は外見から逐次的に直並列化できない場合があります。そのような場合はノードとループの方程式に戻ればよく、共通のノードを持つ素子を無理やり並列として計算してはいけません。
KCL:ノードにおける電荷保存
正味の電荷を蓄積しない理想ノードモデルでは、流入電流の和は流出電流の和に等しくなります。より一般的には、有限領域において「流入 − 流出 = 領域内の電荷変化率」が成り立ちます。通常の集定数回路では、蓄積効果はコンデンサなどの素子およびその分岐路電流に組み込まれており、回路内で常に電荷が蓄積できないという意味ではありません。
KVL:ループに沿った電位変化の一貫した計算
適用可能な集定数回路モデルでは、閉ループに沿って各分岐路の電圧を統一された方向で足し合わせると、代数和はゼロになります。抵抗を通過し、その電流方向に沿うと電圧降下は −IR です。理想電圧源の負端から正端へ移動すると +V です。一周回ると元の電位に戻らなければなりません。OpenStax:キルヒホッフの法則
これはすべての電場が保存力場であることを意味するのではありません。時間変化する磁束は誘起起電力を発生させ、場の理論的な形式では ∮E·dl = −dΦ_B/dt となります。インダクタ、トランス、または磁気結合を解析する際には、対応する誘起効果をモデルに組み込む必要があります。導線の伝播遅延や空間分布が無視できない場合は、伝送線路などのモデルが必要であり、「導線の抵抗は非常に小さい」という理由だけで全体を等電位点として扱うことはできません。
数値による完全な導出:2 Ω の直列と 3 Ω および 5 Ω の並列
以下では理想的な直流モデルのみを使用します。R₁ 後のノード A で R₂、R₃ の2つの分岐に分かれ、下部の導線を 0 V とします。電源上端は +10 V です。この接続により、I₁ = I₂ + I₃ となり、3つの抵抗に同じ電流が流れるわけではありません。
R₁ = 2 Ω + − 10 V R₂ = 3 Ω R₃ = 5 Ω A 基準ノード:0 V I₁ I₂ I₃ まず接続、極性、電流方向を固定し、保存則の方程式を立てる R₂ と R₃ は2つのノードを共有しており並列です。R₁ の電流は A 点で2つの分岐に分かれます。
まず並列部を簡略化します:R₂₃ = 3×5/(3+5) = 15/8 Ω です。全抵抗は 2 + 15/8 = 31/8 Ω となるため、I₁ = 10/(31/8) = 80/31 A ≈ 2.581 A です。
ノード A の電圧は U_A = I₁R₂₃ = 150/31 V ≈ 4.839 V です。2つの分岐路の電流はそれぞれ I₂ = U_A/3 = 50/31 A、I₃ = U_A/5 = 30/31 A となり、抵抗の小さい分岐路により多くの電流が流れます。
また、A 点から直接ノード方程式を立てることもできます:(10 − U_A)/2 = U_A/3 + U_A/5 。左辺は電源から R₁ を通じて流入する電流、右辺は2つの流出分岐路です。2つの解法は同じ U_A を得るはずです。
検証 正確な値を代入 結果
KCL 80/31 − 50/31 − 30/31 0 A
左側の R₂ ループ 10 − 2×80/31 − 3×50/31 0 V
R₃ ループ 10 − 2×80/31 − 5×30/31 0 V
2つの並列分岐路の電圧降下 3×50/31 と 5×30/31 いずれも 150/31 V
電力計算では、代数計算だけでは見落としがちな符号の誤りも発見できます。3つの抵抗が吸収する電力はそれぞれ 12800/961、7500/961、4500/961 W で、合計は 800/31 W です。電源が供給する電力は 10×80/31 = 800/31 W です。受動符号規約に従って電源の吸収電力を負として計算すると、各素子の電力の代数和はちょうどゼロになります。これは算数の教学用回路であり、実際の抵抗の定格を指定した組立方式ではありません。
from fractions import Fraction as F
r1 , r2 , r3 , vs = F ( 2 ) , F ( 3 ) , F ( 5 ) , F ( 10 )
r_parallel = 1 / ( 1 / r2 + 1 / r3 )
i1 = vs / ( r1 + r_parallel )
va = vs - i1 * r1
i2 , i3 = va / r2 , va / r3
assert ( i1 , i2 , i3 , va ) == ( F ( 80 , 31 ) , F ( 50 , 31 ) , F ( 30 , 31 ) , F ( 150 , 31 ) )
assert i1 - i2 - i3 == 0
assert vs - i1 * r1 - i2 * r2 == 0
assert vs - i1 * r1 - i3 * r3 == 0
assert i1 * i1 * r1 + i2 * i2 * r2 + i3 * i3 * r3 == vs * i1
print ( " ノード、2つのループ、および電力収支が正確な分数で検証された" )
電流はどこで分岐する?
R3 を増やすとその枝電流は減るが、A の電位が上がり R2 の電流も変わる。各枝が独立した固定電圧を見るわけではない。KCL と電力の両方を確認する。
図を準備しています 再読み込み
電流はどこで分岐する? 定常節点は電流を消費しない。分流で電位が変わり、抵抗損失の合計は電源供給と等しい。
{"id":"node-current-balance","title":"電流はどこで分岐する?","summary":"定常節点は電流を消費しない。分流で電位が変わり、抵抗損失の合計は電源供給と等しい。","height":1000,"html":"<h2 data-i18n=\"heading\"></h2><p class=\"intro\" data-i18n=\"intro\"></p><div class=\"control\"><label for=\"r1\" data-i18n=\"r1\"></label><output for=\"r1\" id=\"r1-value\"></output><input id=\"r1\" type=\"range\" min=\"1\" max=\"10\" value=\"2\" step=\"1\"></div><div class=\"control\"><label for=\"r2\" data-i18n=\"r2\"></label><output for=\"r2\" id=\"r2-value\"></output><input id=\"r2\" type=\"range\" min=\"1\" max=\"10\" value=\"3\" step=\"1\"></div><div class=\"control\"><label for=\"r3\" data-i18n=\"r3\"></label><output for=\"r3\" id=\"r3-value\"></output><input id=\"r3\" type=\"range\" min=\"1\" max=\"10\" value=\"5\" step=\"1\"></div><svg id=\"circuit\" class=\"diagram\" viewBox=\"0 0 360 180\" role=\"img\" data-i18n-label=\"heading\"></svg><section class=\"panel\"><h3 data-i18n=\"branches\"></h3><div id=\"currents\"></div></section><div class=\"metrics\"><div><span data-i18n=\"node\"></span><strong id=\"node\"></strong></div><div><span data-i18n=\"source\"></span><strong id=\"source\"></strong></div></div><p id=\"eq\" class=\"formula\"></p><details class=\"scope\"><summary data-i18n=\"scopeLabel\"></summary><p data-i18n=\"scope\"></p></details>","css":".intro{margin:8px 0 18px;color:var(--muted);font-size:14px}.caption,.hint{font-size:12px;color:var(--muted);margin-top:12px}.control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;margin:14px 0;font-size:13px}.control label{font-size:13px}.control output{color:var(--accent);min-width:5em;text-align:right;font-variant-numeric:tabular-nums}.control input{grid-column:1/-1;width:100%;margin:0}.presets{display:flex;gap:4px;align-items:stretch}.presets button{flex:1 1 0;min-width:0;overflow-wrap:anywhere;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.actions button{flex:1;min-width:0;font-size:13px;min-height:42px}.copy{display:grid;font-size:14px;margin:16px 0}.copy>*{grid-area:1/1;margin:0}.reserve{visibility:hidden}.scope{margin-top:14px;color:var(--muted);font-size:12px}.scope summary{padding:8px 0;cursor:pointer}.scope p{margin-top:10px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.card{border:1px solid var(--rule);border-radius:9px;padding:14px;min-width:0}.card header{font-size:14px;font-weight:600;margin-bottom:10px}.card button{font-size:12px;width:100%;min-width:0}.card small{display:block;font-size:12px;color:var(--muted)}.card code{font-size:12px;overflow-wrap:anywhere}.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.metrics>div{border-left:2px solid var(--accent);padding-left:10px;min-width:0}.metrics span{display:block;min-height:3.2em;color:var(--muted);font-size:12px}.metrics strong{font-size:23px;display:block;font-weight:550;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.formula{border-top:1px solid var(--rule);padding-top:12px;margin-top:14px;font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.value{font:550 20px ui-monospace,monospace}.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--muted);margin:12px 0}.legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--accent);margin-right:6px}.legend .second:before{background:var(--second)}.check{display:flex;align-items:center;gap:8px;font-size:13px;margin:12px 0}.check input{width:16px;height:16px;flex-shrink:0;accent-color:var(--accent)}select,input[type=text],input[type=number]{background:var(--paper);color:var(--ink);font:inherit;font-size:13px;padding:10px;border:1px solid var(--rule);border-radius:7px;max-width:100%;min-width:0}select{width:100%;min-height:42px}.band{height:20px;display:flex;background:var(--surface);border-radius:4px;overflow:hidden}.band i{height:100%;display:block;background:var(--accent);transition:width .25s}.band i.second{background:var(--second)}button:disabled{cursor:default}.status{font-size:13px;min-height:4.8em}.mono{font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}\n@media(max-width:480px){.two{gap:8px}.card{padding:12px 9px}.actions button,.presets button{font-size:12px}.metrics strong{font-size:20px}.metrics{gap:8px}}\n@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}\n.track-row{margin:16px 0}.track-row>span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.track{display:flex;gap:5px;min-width:0}.cell{flex:1;min-width:0;min-height:48px;border:1px solid var(--rule);border-radius:5px;background:var(--surface);display:flex;align-items:center;justify-content:center;text-align:center;padding:5px 3px;font-size:12px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.cell.on{background:var(--accent-soft);border-color:var(--accent)}.cell.gold{background:var(--second-soft);border-color:var(--second)}.cell.empty{border-style:dashed;color:var(--muted)}.cell.error{border-color:var(--second);text-decoration:line-through}.choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0}.choices button{min-width:0;padding:10px 4px;font-size:12px;overflow-wrap:anywhere}.choices button[aria-current=true]{border-color:var(--accent);background:var(--accent-soft)}.relation{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:6px;margin:12px 0}.relation .cell{min-height:72px}.relation>i{text-align:center;font-style:normal;color:var(--accent)}.readout{font-size:13px;white-space:pre-line;min-height:6.4em;overflow-wrap:anywhere}.plot{position:relative;border-left:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:8px 0;margin:18px 0}.plot-row{height:28px;position:relative;margin:4px 0;background:var(--surface)}.plot-row i{position:absolute;inset-block:5px;background:var(--accent);min-width:2px;transition:width .2s,left .2s}.plot-row b{position:relative;padding:4px 6px;font:11px/28px ui-monospace,monospace;background:var(--paper);border-radius:3px}.axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}\n\n/* Action labels must remain readable across locales and narrow embeds. */\n.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}\n.actions button{overflow-wrap:anywhere;white-space:normal;min-height:58px;padding:8px}\nbutton{overflow-wrap:anywhere}\n@media(min-width:640px){.actions{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n.metrics span{overflow-wrap:anywhere}\n.panel{border:1px solid var(--rule);border-radius:9px;padding:12px;margin:14px 0;min-width:0}.panel h3{font-size:13px;margin:0 0 10px;color:var(--muted)}.source{font:13px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.source mark{background:var(--accent-soft);color:var(--ink);border-bottom:2px solid var(--accent)}.source .fault{background:var(--second-soft);border-color:var(--second)}.diagram{display:block;width:100%;height:auto;max-height:320px;margin:14px 0;overflow:visible}.diagram text{fill:var(--ink);font:12px ui-monospace,monospace}.diagram .edge{stroke:var(--muted);stroke-width:1.5;fill:none}.diagram .edge.on{stroke:var(--accent);stroke-width:3}.diagram .node{fill:var(--surface);stroke:var(--rule);stroke-width:1.5}.diagram .node.on{fill:var(--accent-soft);stroke:var(--accent)}.diagram .node.gold{fill:var(--second-soft);stroke:var(--second)}.log{font:12px/1.8 ui-monospace,monospace;white-space:pre-line;overflow-wrap:anywhere;min-height:7.2em}.table{display:grid;gap:5px;margin:14px 0}.table .tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.table .tr>*{padding:8px 5px;background:var(--surface);border-radius:4px;min-width:0;overflow-wrap:anywhere;font-size:12px}.table .tr .on{background:var(--accent-soft)}.table .tr .gold{background:var(--second-soft)}.choices button{min-height:44px}.metrics strong{min-height:1.6em}.code-line{display:block}.code-line.on{background:var(--accent-soft);border-left:2px solid var(--accent);padding-left:6px}.status-badge{font-size:12px;color:var(--accent)}.tile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.tile-grid .cell{min-height:40px}.actions button{min-height:48px}.form-field{display:grid;gap:8px;margin:14px 0;font-size:13px}.form-field input{width:100%;font-family:ui-monospace,monospace}.metrics.three{grid-template-columns:repeat(3,minmax(0,1fr))}.formula{min-height:3.2em}.presets{flex-wrap:wrap}.presets button{flex-basis:25%;min-height:44px}\n\n.budget{display:flex;height:28px;margin:16px 0;background:var(--surface);border-radius:5px;overflow:hidden}.budget i{display:block;background:var(--accent);transition:width .2s}.budget i.gold{background:var(--second)}.intervals{margin:16px 0}.interval{position:relative;height:36px;background:var(--surface);margin:6px 0;border-radius:4px;overflow:hidden}.interval i{position:absolute;height:100%;background:var(--accent-soft);border-left:2px solid var(--accent)}.interval i.gold{background:var(--second-soft);border-color:var(--second)}.interval span{position:relative;z-index:1;font:12px/36px ui-monospace,monospace;padding-left:7px}.table .tr>*{min-height:4.8em}.formula{white-space:pre-line;min-height:7.2em}.actions:has(>button:only-child){grid-template-columns:1fr}.metrics strong{min-height:3.2em}.rangegrid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;margin:14px 0}.rangegrid .cell{min-height:30px;padding:3px 1px;font-size:10px}.message{min-height:7.2em;white-space:pre-line;font:13px/1.8 ui-monospace,monospace;overflow-wrap:anywhere}\n/* Allow CJK hanging punctuation without overflowing a metric's border box. */\n.metrics>div{padding-right:4px}.metrics span{line-break:anywhere}\n\n.chart-wrap{margin:18px 0}.chart-label{font-size:12px;color:var(--muted);min-height:3.2em}.curve{display:block;width:100%;height:auto;max-height:320px;overflow:visible}.curve text{font:11px ui-monospace,monospace;fill:var(--muted)}.gridline{stroke:var(--rule);stroke-width:1}.metrics strong{font-size:20px;min-height:3.2em}.formula{font:12px/1.8 ui-monospace,monospace;min-height:9em}.readout{min-height:8em}.presets button{flex-basis:30%}.scope p{overflow-wrap:anywhere} .unit-note{font-size:12px;color:var(--muted);margin:10px 0}\n\n.metrics span{word-break:break-all;line-break:strict}.metrics>div{padding-right:6px}\n\n","js":"const $=s=>document.querySelector(s);const set=(id,v)=>$('#'+id).textContent=v;const t=k=>viz.t(k);function cells(id,values){$('#'+id).replaceChildren(...values.map(v=>{const e=document.createElement('div');e.className='cell '+(v.cls||'');e.textContent=v.text;e.title=v.title||v.text;return e;}));}function pressed(mode){document.querySelectorAll('[data-mode]').forEach(e=>e.setAttribute('aria-pressed',String(e.dataset.mode===mode)));}const esc=s=>String(s).replace(/[&<>\"']/g,c=>({'&':'&','<':'<','>':'>','\"':'"',\"'\":'''}[c]));const fmt=s=>'{'+[...s].sort().join(', ')+'}';function graph(id,nodes,edges){const el=$('#'+id);el.setAttribute('viewBox','0 0 360 200');el.innerHTML='<defs><marker id=\"arrow-'+id+'\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"5\" markerHeight=\"5\" orient=\"auto-start-reverse\"><path d=\"M 0 0 L 10 5 L 0 10 z\" fill=\"var(--muted)\"/></marker></defs>'+edges.map(e=>{const a=nodes[e[0]],b=nodes[e[1]],dx=b.x-a.x,dy=b.y-a.y,d=Math.hypot(dx,dy)||1;if(edges.some(r=>r[0]===e[1]&&r[1]===e[0])){const nx=-dy/d,ny=dx/d;return '<path class=\"edge '+(e[2]?'on':'')+'\" d=\"M '+(a.x+dx/d*22+nx*12)+' '+(a.y+dy/d*22+ny*12)+' Q '+((a.x+b.x)/2+nx*38)+' '+((a.y+b.y)/2+ny*38)+' '+(b.x-dx/d*25+nx*12)+' '+(b.y-dy/d*25+ny*12)+'\" marker-end=\"url(#arrow-'+id+')\"/>';}return '<line class=\"edge '+(e[2]?'on':'')+'\" x1=\"'+(a.x+dx/d*25)+'\" y1=\"'+(a.y+dy/d*25)+'\" x2=\"'+(b.x-dx/d*28)+'\" y2=\"'+(b.y-dy/d*28)+'\" marker-end=\"url(#arrow-'+id+')\"/>';}).join('')+nodes.map(n=>'<g><circle class=\"node '+(n.cls||'')+'\" cx=\"'+n.x+'\" cy=\"'+n.y+'\" r=\"25\"/><text x=\"'+n.x+'\" y=\"'+(n.y+4)+'\" text-anchor=\"middle\">'+esc(n.name)+'</text>'+(n.sub?'<text x=\"'+n.x+'\" y=\"'+(n.y+43)+'\" text-anchor=\"middle\">'+esc(n.sub)+'</text>':'')+'</g>').join('');}function table(id,rows){$('#'+id).classList.add('table');$('#'+id).replaceChildren(...rows.map(r=>{const row=document.createElement('div');row.className='tr';row.style.gridTemplateColumns='repeat('+r.length+',minmax(0,1fr))';r.forEach(x=>{const c=document.createElement('div');if(typeof x==='object'){c.textContent=x.text;c.className=x.cls||'';}else c.textContent=x;row.append(c)});return row;}));}function band(id,parts,total){$('#'+id).replaceChildren(...parts.map((p,i)=>{const e=document.createElement('i');e.style.width=(100*p.value/total)+'%';e.className=i%2?'gold':'on';e.title=p.name+': '+p.value;return e}));}function intervals(id,items,total){$('#'+id).replaceChildren(...items.map(p=>{const row=document.createElement('div');row.className='interval';const bar=document.createElement('i');bar.style.left=(100*p.start/total)+'%';bar.style.width=(100*(p.end-p.start)/total)+'%';bar.className=p.cls||'';const label=document.createElement('span');label.textContent=p.label;row.append(bar,label);return row;}));}function plot(id,series,xr,yr,opts={}){const e=$('#'+id),X=x=>42+(x-xr[0])/(xr[1]-xr[0])*298,Y=y=>175-(y-yr[0])/(yr[1]-yr[0])*148;let out='<defs><clipPath id=\"clip-'+id+'\"><rect x=\"42\" y=\"27\" width=\"298\" height=\"148\"/></clipPath></defs>';for(let i=0;i<3;i++){let x=xr[0]+i*(xr[1]-xr[0])/2,y=yr[0]+i*(yr[1]-yr[0])/2;out+='<path class=\"gridline\" d=\"M '+X(x)+' 27V175M42 '+Y(y)+'H340\"/><text x=\"'+X(x)+'\" y=\"194\" text-anchor=\"middle\">'+esc(opts.xfmt?opts.xfmt(x):Number(x.toFixed(2)))+'</text><text x=\"36\" y=\"'+(Y(y)+4)+'\" text-anchor=\"end\">'+esc(opts.yfmt?opts.yfmt(y):Number(y.toFixed(2)))+'</text>';}out+='<g clip-path=\"url(#clip-'+id+')\">';for(const s of series){out+='<path fill=\"none\" stroke=\"'+(s.color||'var(--accent)')+'\" stroke-width=\"2.5\" '+(s.dash?'stroke-dasharray=\"5 4\"':'')+' d=\"'+s.pts.map((p,i)=>(i?'L':'M')+X(p[0]).toFixed(2)+','+Y(p[1]).toFixed(2)).join(' ')+'\"/>';}for(const p of opts.points||[])out+='<circle cx=\"'+X(p[0])+'\" cy=\"'+Y(p[1])+'\" r=\"4\" fill=\"var(--second)\" stroke=\"var(--paper)\" stroke-width=\"1.5\"/>';if(opts.cursor!==undefined)out+='<path d=\"M'+X(opts.cursor)+' 27V175\" stroke=\"var(--muted)\" stroke-dasharray=\"3 3\"/>';e.innerHTML=out+'</g>';e.dataset.curves=JSON.stringify(series.map(s=>s.pts));}const curve=(fn,lo,hi,n=120)=>Array.from({length:n+1},(_,i)=>{const x=lo+(hi-lo)*i/n;return[x,fn(x)]});function inputs(draw){document.querySelectorAll('input,select').forEach(e=>{e.addEventListener('input',draw);e.addEventListener('change',draw)});draw()}const n=id=>+$('#'+id).value;const show=(id,v,d=3)=>set(id,Number(v.toFixed(d)));function draw(){let a=n('r1'),b=n('r2'),c=n('r3'),v=10/(1+a/b+a/c),i1=(10-v)/a,i2=v/b,i3=v/c;['r1','r2','r3'].forEach(k=>show(k+'-value',n(k)));$('#circuit').innerHTML='<path class=\"edge on\" d=\"M25 90H70M120 90H170V35H220M270 35H330V145H270M220 145H170V90M330 90H350\"/><rect class=\"node on\" x=\"70\" y=\"78\" width=\"50\" height=\"24\"/><rect class=\"node on\" x=\"220\" y=\"23\" width=\"50\" height=\"24\"/><rect class=\"node gold\" x=\"220\" y=\"133\" width=\"50\" height=\"24\"/><circle cx=\"170\" cy=\"90\" r=\"4\" fill=\"var(--accent)\"/><circle cx=\"330\" cy=\"90\" r=\"4\" fill=\"var(--accent)\"/>'+[[95,69,'R1='+a+'Ω'],[245,17,'R2='+b+'Ω'],[245,178,'R3='+c+'Ω'],[170,110,'A'],[28,112,'10 V'],[328,112,'0 V'],[245,65,'I2 →'],[245,125,'I3 →'],[95,112,'I1 →']].map(([x,y,s])=>'<text text-anchor=\"middle\" x=\"'+x+'\" y=\"'+y+'\">'+s+'</text>').join('');table('currents',[['R1',i1.toFixed(4)],['R2',i2.toFixed(4)],['R3',i3.toFixed(4)]]);show('node',v);show('source',10*i1);set('eq','I1 = I2 + I3 = '+i2.toFixed(4)+' + '+i3.toFixed(4)+'\\nP1 + P2 + P3 = '+(i1*i1*a).toFixed(3)+' + '+(i2*i2*b).toFixed(3)+' + '+(i3*i3*c).toFixed(3)+' W');$('#node').dataset.values=JSON.stringify([v,i1,i2,i3]);}inputs(draw);","audio":false,"strings":{"branches":"枝電流(A)","heading":"電流はどこで分岐する?","intro":"枝の抵抗を変え、節点電位と電力を確認。","node":"節点 A(V)","r1":"R1(Ω)","r2":"R2(Ω)","r3":"R3(Ω)","reset":"リセット","scope":"10 V 理想電源、R1 と R2∥R3 の直列。単位 Ω、A、V、W。","scopeLabel":"モデルの範囲と前提","source":"電源供給(W)"}}
波形と実効値
定常直流は理想モデルでは時間変化しません。実際の電源にはリップルが重畳している可能性があります。一般的な周期信号には平均値、振幅、周期、形状が同時に存在し、「5 V の信号」とだけ言っても、電力やインターフェースの互換性を特定するには不十分です。
パラメータ 意味と条件
周期 T、周波数 f f = 1/T;非周期パルスには単一の繰り返し周波数がない場合がある
角周波数 ω ω = 2πf、単位 rad/s
ピークツーピーク V_pp 最大値から最小値を引いたもの;ゼロ偏位対称信号のみ、正の峰值の2倍に等しい
平均値 1周期分の電圧積分を周期で割ったもの。直流成分を示す
実効値 V_rms 1周期分の電圧の二乗平均の平方根。直流成分を含む
実効値は「振幅 × 0.707」という一般的な換算ではありません。V_rms = √[(1/T)∫u²(t)dt] と定義されます。固定された理想抵抗では、平均電力は V_rms²/R となるため、実効値は平均電圧ではなく発熱を等価化するものです。ゼロ偏位の正弦波 A sin(ωt+φ) のみに V_rms = A/√2 が成り立ちます。OpenStax:交流回路
ゼロ偏位正弦:平均 0 V 5 0 0/5 V、デューティ比 25%:平均 1.25 V 5 0 実効値:5 / √2 ≈ 3.54 V 実効値:5 × √0.25 = 2.5 V 同じ 5 V ピークでも、平均値と実効値は異なることがある 同じ理想抵抗に対して、平均発熱は電圧の平均値ではなく、実効値の二乗によって決まります。
0 から A までの理想矩形パルスにおいて、High レベルが周期 D を占める場合、平均値は AD、実効値は A√D です。A = 5 V、D = 25% の場合、平均値は 1.25 V ですが、実効値は 2.5 V です。100 Ω の抵抗に対する平均電力は 2.5²/100 = 62.5 mW となり、1.25²/100 で得られる 15.625 mW で代用することはできません。
直流バイアス付きの正弦波 u = U₀ + A sin(ωt) については、V_rms² = U₀² + A²/2 となります。一般的な交流負荷では、平均電力は平均の u(t)i(t) を計算する必要があります。電圧と電流の実効値の積が必ずしも有効電力に等しいとは限りません。位相や波形の相関性も結果に影響を与えるためです。
実効値はなぜ先に二乗する?
二つの図は同じ時間軸。パルスを短くすると高さではなく面積が減る。電力は下図の面積に従い、D=25% の実効値はピークの半分。二つの電力計算が一致するのは D=0 または 1。
U r m s = A D , P = R A 2 D
図を準備しています 再読み込み
実効値はなぜ先に二乗する? 平均電圧も二乗平均も D に比例するため、実効値は √D に比例する。
{"id":"rms-square-area","title":"実効値はなぜ先に二乗する?","summary":"平均電圧も二乗平均も D に比例するため、実効値は √D に比例する。","height":1000,"html":"<h2 data-i18n=\"heading\"></h2><p class=\"intro\" data-i18n=\"intro\"></p><div class=\"control\"><label for=\"d\" data-i18n=\"d\"></label><output for=\"d\" id=\"d-value\"></output><input id=\"d\" type=\"range\" min=\"0\" max=\"100\" value=\"25\" step=\"1\"></div><div class=\"chart-wrap\"><div class=\"chart-label\" data-i18n=\"wave\"></div><svg id=\"wave\" class=\"curve\" viewBox=\"0 0 360 210\" role=\"img\" data-i18n-label=\"wave\"></svg></div><div class=\"chart-wrap\"><div class=\"chart-label\" data-i18n=\"square\"></div><svg id=\"square\" class=\"curve\" viewBox=\"0 0 360 210\" role=\"img\" data-i18n-label=\"square\"></svg></div><div class=\"metrics\"><div><span data-i18n=\"mean\"></span><strong id=\"mean\"></strong></div><div><span data-i18n=\"rms\"></span><strong id=\"rms\"></strong></div><div><span data-i18n=\"power\"></span><strong id=\"power\"></strong></div><div><span data-i18n=\"wrong\"></span><strong id=\"wrong\"></strong></div></div><p class=\"formula\" id=\"eq\"></p><details class=\"scope\"><summary data-i18n=\"scopeLabel\"></summary><p data-i18n=\"scope\"></p></details>","css":".intro{margin:8px 0 18px;color:var(--muted);font-size:14px}.caption,.hint{font-size:12px;color:var(--muted);margin-top:12px}.control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center;margin:14px 0;font-size:13px}.control label{font-size:13px}.control output{color:var(--accent);min-width:5em;text-align:right;font-variant-numeric:tabular-nums}.control input{grid-column:1/-1;width:100%;margin:0}.presets{display:flex;gap:4px;align-items:stretch}.presets button{flex:1 1 0;min-width:0;overflow-wrap:anywhere;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.actions button{flex:1;min-width:0;font-size:13px;min-height:42px}.copy{display:grid;font-size:14px;margin:16px 0}.copy>*{grid-area:1/1;margin:0}.reserve{visibility:hidden}.scope{margin-top:14px;color:var(--muted);font-size:12px}.scope summary{padding:8px 0;cursor:pointer}.scope p{margin-top:10px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.card{border:1px solid var(--rule);border-radius:9px;padding:14px;min-width:0}.card header{font-size:14px;font-weight:600;margin-bottom:10px}.card button{font-size:12px;width:100%;min-width:0}.card small{display:block;font-size:12px;color:var(--muted)}.card code{font-size:12px;overflow-wrap:anywhere}.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.metrics>div{border-left:2px solid var(--accent);padding-left:10px;min-width:0}.metrics span{display:block;min-height:3.2em;color:var(--muted);font-size:12px}.metrics strong{font-size:23px;display:block;font-weight:550;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.formula{border-top:1px solid var(--rule);padding-top:12px;margin-top:14px;font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.value{font:550 20px ui-monospace,monospace}.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--muted);margin:12px 0}.legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--accent);margin-right:6px}.legend .second:before{background:var(--second)}.check{display:flex;align-items:center;gap:8px;font-size:13px;margin:12px 0}.check input{width:16px;height:16px;flex-shrink:0;accent-color:var(--accent)}select,input[type=text],input[type=number]{background:var(--paper);color:var(--ink);font:inherit;font-size:13px;padding:10px;border:1px solid var(--rule);border-radius:7px;max-width:100%;min-width:0}select{width:100%;min-height:42px}.band{height:20px;display:flex;background:var(--surface);border-radius:4px;overflow:hidden}.band i{height:100%;display:block;background:var(--accent);transition:width .25s}.band i.second{background:var(--second)}button:disabled{cursor:default}.status{font-size:13px;min-height:4.8em}.mono{font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}\n@media(max-width:480px){.two{gap:8px}.card{padding:12px 9px}.actions button,.presets button{font-size:12px}.metrics strong{font-size:20px}.metrics{gap:8px}}\n@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}\n.track-row{margin:16px 0}.track-row>span{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.track{display:flex;gap:5px;min-width:0}.cell{flex:1;min-width:0;min-height:48px;border:1px solid var(--rule);border-radius:5px;background:var(--surface);display:flex;align-items:center;justify-content:center;text-align:center;padding:5px 3px;font-size:12px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.cell.on{background:var(--accent-soft);border-color:var(--accent)}.cell.gold{background:var(--second-soft);border-color:var(--second)}.cell.empty{border-style:dashed;color:var(--muted)}.cell.error{border-color:var(--second);text-decoration:line-through}.choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:14px 0}.choices button{min-width:0;padding:10px 4px;font-size:12px;overflow-wrap:anywhere}.choices button[aria-current=true]{border-color:var(--accent);background:var(--accent-soft)}.relation{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:6px;margin:12px 0}.relation .cell{min-height:72px}.relation>i{text-align:center;font-style:normal;color:var(--accent)}.readout{font-size:13px;white-space:pre-line;min-height:6.4em;overflow-wrap:anywhere}.plot{position:relative;border-left:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:8px 0;margin:18px 0}.plot-row{height:28px;position:relative;margin:4px 0;background:var(--surface)}.plot-row i{position:absolute;inset-block:5px;background:var(--accent);min-width:2px;transition:width .2s,left .2s}.plot-row b{position:relative;padding:4px 6px;font:11px/28px ui-monospace,monospace;background:var(--paper);border-radius:3px}.axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}\n\n/* Action labels must remain readable across locales and narrow embeds. */\n.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}\n.actions button{overflow-wrap:anywhere;white-space:normal;min-height:58px;padding:8px}\nbutton{overflow-wrap:anywhere}\n@media(min-width:640px){.actions{grid-template-columns:repeat(3,minmax(0,1fr))}}\n\n.metrics span{overflow-wrap:anywhere}\n.panel{border:1px solid var(--rule);border-radius:9px;padding:12px;margin:14px 0;min-width:0}.panel h3{font-size:13px;margin:0 0 10px;color:var(--muted)}.source{font:13px/1.8 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.source mark{background:var(--accent-soft);color:var(--ink);border-bottom:2px solid var(--accent)}.source .fault{background:var(--second-soft);border-color:var(--second)}.diagram{display:block;width:100%;height:auto;max-height:320px;margin:14px 0;overflow:visible}.diagram text{fill:var(--ink);font:12px ui-monospace,monospace}.diagram .edge{stroke:var(--muted);stroke-width:1.5;fill:none}.diagram .edge.on{stroke:var(--accent);stroke-width:3}.diagram .node{fill:var(--surface);stroke:var(--rule);stroke-width:1.5}.diagram .node.on{fill:var(--accent-soft);stroke:var(--accent)}.diagram .node.gold{fill:var(--second-soft);stroke:var(--second)}.log{font:12px/1.8 ui-monospace,monospace;white-space:pre-line;overflow-wrap:anywhere;min-height:7.2em}.table{display:grid;gap:5px;margin:14px 0}.table .tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.table .tr>*{padding:8px 5px;background:var(--surface);border-radius:4px;min-width:0;overflow-wrap:anywhere;font-size:12px}.table .tr .on{background:var(--accent-soft)}.table .tr .gold{background:var(--second-soft)}.choices button{min-height:44px}.metrics strong{min-height:1.6em}.code-line{display:block}.code-line.on{background:var(--accent-soft);border-left:2px solid var(--accent);padding-left:6px}.status-badge{font-size:12px;color:var(--accent)}.tile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.tile-grid .cell{min-height:40px}.actions button{min-height:48px}.form-field{display:grid;gap:8px;margin:14px 0;font-size:13px}.form-field input{width:100%;font-family:ui-monospace,monospace}.metrics.three{grid-template-columns:repeat(3,minmax(0,1fr))}.formula{min-height:3.2em}.presets{flex-wrap:wrap}.presets button{flex-basis:25%;min-height:44px}\n\n.budget{display:flex;height:28px;margin:16px 0;background:var(--surface);border-radius:5px;overflow:hidden}.budget i{display:block;background:var(--accent);transition:width .2s}.budget i.gold{background:var(--second)}.intervals{margin:16px 0}.interval{position:relative;height:36px;background:var(--surface);margin:6px 0;border-radius:4px;overflow:hidden}.interval i{position:absolute;height:100%;background:var(--accent-soft);border-left:2px solid var(--accent)}.interval i.gold{background:var(--second-soft);border-color:var(--second)}.interval span{position:relative;z-index:1;font:12px/36px ui-monospace,monospace;padding-left:7px}.table .tr>*{min-height:4.8em}.formula{white-space:pre-line;min-height:7.2em}.actions:has(>button:only-child){grid-template-columns:1fr}.metrics strong{min-height:3.2em}.rangegrid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;margin:14px 0}.rangegrid .cell{min-height:30px;padding:3px 1px;font-size:10px}.message{min-height:7.2em;white-space:pre-line;font:13px/1.8 ui-monospace,monospace;overflow-wrap:anywhere}\n/* Allow CJK hanging punctuation without overflowing a metric's border box. */\n.metrics>div{padding-right:4px}.metrics span{line-break:anywhere}\n\n.chart-wrap{margin:18px 0}.chart-label{font-size:12px;color:var(--muted);min-height:3.2em}.curve{display:block;width:100%;height:auto;max-height:320px;overflow:visible}.curve text{font:11px ui-monospace,monospace;fill:var(--muted)}.gridline{stroke:var(--rule);stroke-width:1}.metrics strong{font-size:20px;min-height:3.2em}.formula{font:12px/1.8 ui-monospace,monospace;min-height:9em}.readout{min-height:8em}.presets button{flex-basis:30%}.scope p{overflow-wrap:anywhere} .unit-note{font-size:12px;color:var(--muted);margin:10px 0}\n\n.metrics span{word-break:break-all;line-break:strict}.metrics>div{padding-right:6px}\n\n","js":"const $=s=>document.querySelector(s);const set=(id,v)=>$('#'+id).textContent=v;const t=k=>viz.t(k);function cells(id,values){$('#'+id).replaceChildren(...values.map(v=>{const e=document.createElement('div');e.className='cell '+(v.cls||'');e.textContent=v.text;e.title=v.title||v.text;return e;}));}function pressed(mode){document.querySelectorAll('[data-mode]').forEach(e=>e.setAttribute('aria-pressed',String(e.dataset.mode===mode)));}const esc=s=>String(s).replace(/[&<>\"']/g,c=>({'&':'&','<':'<','>':'>','\"':'"',\"'\":'''}[c]));const fmt=s=>'{'+[...s].sort().join(', ')+'}';function graph(id,nodes,edges){const el=$('#'+id);el.setAttribute('viewBox','0 0 360 200');el.innerHTML='<defs><marker id=\"arrow-'+id+'\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"5\" markerHeight=\"5\" orient=\"auto-start-reverse\"><path d=\"M 0 0 L 10 5 L 0 10 z\" fill=\"var(--muted)\"/></marker></defs>'+edges.map(e=>{const a=nodes[e[0]],b=nodes[e[1]],dx=b.x-a.x,dy=b.y-a.y,d=Math.hypot(dx,dy)||1;if(edges.some(r=>r[0]===e[1]&&r[1]===e[0])){const nx=-dy/d,ny=dx/d;return '<path class=\"edge '+(e[2]?'on':'')+'\" d=\"M '+(a.x+dx/d*22+nx*12)+' '+(a.y+dy/d*22+ny*12)+' Q '+((a.x+b.x)/2+nx*38)+' '+((a.y+b.y)/2+ny*38)+' '+(b.x-dx/d*25+nx*12)+' '+(b.y-dy/d*25+ny*12)+'\" marker-end=\"url(#arrow-'+id+')\"/>';}return '<line class=\"edge '+(e[2]?'on':'')+'\" x1=\"'+(a.x+dx/d*25)+'\" y1=\"'+(a.y+dy/d*25)+'\" x2=\"'+(b.x-dx/d*28)+'\" y2=\"'+(b.y-dy/d*28)+'\" marker-end=\"url(#arrow-'+id+')\"/>';}).join('')+nodes.map(n=>'<g><circle class=\"node '+(n.cls||'')+'\" cx=\"'+n.x+'\" cy=\"'+n.y+'\" r=\"25\"/><text x=\"'+n.x+'\" y=\"'+(n.y+4)+'\" text-anchor=\"middle\">'+esc(n.name)+'</text>'+(n.sub?'<text x=\"'+n.x+'\" y=\"'+(n.y+43)+'\" text-anchor=\"middle\">'+esc(n.sub)+'</text>':'')+'</g>').join('');}function table(id,rows){$('#'+id).classList.add('table');$('#'+id).replaceChildren(...rows.map(r=>{const row=document.createElement('div');row.className='tr';row.style.gridTemplateColumns='repeat('+r.length+',minmax(0,1fr))';r.forEach(x=>{const c=document.createElement('div');if(typeof x==='object'){c.textContent=x.text;c.className=x.cls||'';}else c.textContent=x;row.append(c)});return row;}));}function band(id,parts,total){$('#'+id).replaceChildren(...parts.map((p,i)=>{const e=document.createElement('i');e.style.width=(100*p.value/total)+'%';e.className=i%2?'gold':'on';e.title=p.name+': '+p.value;return e}));}function intervals(id,items,total){$('#'+id).replaceChildren(...items.map(p=>{const row=document.createElement('div');row.className='interval';const bar=document.createElement('i');bar.style.left=(100*p.start/total)+'%';bar.style.width=(100*(p.end-p.start)/total)+'%';bar.className=p.cls||'';const label=document.createElement('span');label.textContent=p.label;row.append(bar,label);return row;}));}function plot(id,series,xr,yr,opts={}){const e=$('#'+id),X=x=>42+(x-xr[0])/(xr[1]-xr[0])*298,Y=y=>175-(y-yr[0])/(yr[1]-yr[0])*148;let out='<defs><clipPath id=\"clip-'+id+'\"><rect x=\"42\" y=\"27\" width=\"298\" height=\"148\"/></clipPath></defs>';for(let i=0;i<3;i++){let x=xr[0]+i*(xr[1]-xr[0])/2,y=yr[0]+i*(yr[1]-yr[0])/2;out+='<path class=\"gridline\" d=\"M '+X(x)+' 27V175M42 '+Y(y)+'H340\"/><text x=\"'+X(x)+'\" y=\"194\" text-anchor=\"middle\">'+esc(opts.xfmt?opts.xfmt(x):Number(x.toFixed(2)))+'</text><text x=\"36\" y=\"'+(Y(y)+4)+'\" text-anchor=\"end\">'+esc(opts.yfmt?opts.yfmt(y):Number(y.toFixed(2)))+'</text>';}out+='<g clip-path=\"url(#clip-'+id+')\">';for(const s of series){out+='<path fill=\"none\" stroke=\"'+(s.color||'var(--accent)')+'\" stroke-width=\"2.5\" '+(s.dash?'stroke-dasharray=\"5 4\"':'')+' d=\"'+s.pts.map((p,i)=>(i?'L':'M')+X(p[0]).toFixed(2)+','+Y(p[1]).toFixed(2)).join(' ')+'\"/>';}for(const p of opts.points||[])out+='<circle cx=\"'+X(p[0])+'\" cy=\"'+Y(p[1])+'\" r=\"4\" fill=\"var(--second)\" stroke=\"var(--paper)\" stroke-width=\"1.5\"/>';if(opts.cursor!==undefined)out+='<path d=\"M'+X(opts.cursor)+' 27V175\" stroke=\"var(--muted)\" stroke-dasharray=\"3 3\"/>';e.innerHTML=out+'</g>';e.dataset.curves=JSON.stringify(series.map(s=>s.pts));}const curve=(fn,lo,hi,n=120)=>Array.from({length:n+1},(_,i)=>{const x=lo+(hi-lo)*i/n;return[x,fn(x)]});function inputs(draw){document.querySelectorAll('input,select').forEach(e=>{e.addEventListener('input',draw);e.addEventListener('change',draw)});draw()}const n=id=>+$('#'+id).value;const show=(id,v,d=3)=>set(id,Number(v.toFixed(d)));function draw(){let d=n('d')/100;show('d-value',100*d);const pts=a=>[[0,a],[d,a],[d,0],[1,0]];plot('wave',[{pts:pts(5)}],[0,1],[0,5]);plot('square',[{pts:pts(25),color:'var(--second)'}],[0,1],[0,25]);show('mean',5*d);show('rms',5*Math.sqrt(d));show('power',250*d);show('wrong',250*d*d);set('eq','⟨u²⟩ = 25 × '+d.toFixed(2)+' V²\\nUrms = √⟨u²⟩ = '+(5*Math.sqrt(d)).toFixed(3)+' V\\nP = ⟨u²⟩ / R '+((d===0||d===1)?'=':'≠')+' ⟨u⟩² / R');}inputs(draw);","audio":false,"strings":{"d":"高レベル比率(%)","heading":"実効値はなぜ先に二乗する?","intro":"デューティ比を変え、電圧と二乗波形の面積を比較。","mean":"平均電圧(V)","power":"平均電力(mW)","reset":"リセット","rms":"実効値(V)","scope":"0–5 V 理想パルスと 100 Ω 抵抗。有限のエッジは省略。","scopeLabel":"モデルの範囲と前提","square":"横軸 t/T、金:u²(V²)","wave":"横軸 t/T、青:u(V)","wrong":"平均電圧の二乗 / R(mW)"}}
接頭辞早見表と次のステップ
接頭辞 記号 倍率 例
テラ、ギガ、メガ T、G、M 10¹²、10⁹、10⁶ 1 GHz = 10⁹ Hz
キロ k 10³ 4.7 kΩ = 4700 Ω
ミリ m 10⁻³ 2 mA = 0.002 A
マイクロ μ 10⁻⁶ 100 μF = 0.0001 F
ナノ n 10⁻⁹ 20 ns = 20×10⁻⁹ s
ピコ p 10⁻¹² 22 pF = 22×10⁻¹² F
大文字と小文字には意味があります。MΩ と mΩ は 10⁹ 倍も異なります。式に代入する際は単位を統一し、計算後に換算してください。もし桁外れに異常な結果が得られた場合は、法則を疑う前に、まず接頭辞、極性、接続関係を再確認してください。
次に 直流回路解析 をお読みください。ノード法、重ね合わせ、ポート等価へと、同じ保存則の体系を拡張します。素子の実際の偏差、温度ドリフト、および電力制限については 抵抗 を参照してください。