File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 55
66In digital electronics, buffers are essential for:
77- Isolating different circuit sections
8- - Increasing current drive capability
8+ - Increasing current drive capability
99- Preventing signal degradation
1010- Creating intentional delays in timing circuits
1111
@@ -36,4 +36,4 @@ def buffer_gate(input_1: int) -> int:
3636if __name__ == "__main__" :
3737 import doctest
3838
39- doctest .testmod ()
39+ doctest .testmod ()
Original file line number Diff line number Diff line change @@ -8,28 +8,28 @@ def wheatstone_solver(
88 """
99 Calculate the unknown resistance (Rx) in a Wheatstone bridge circuit.
1010
11- A Wheatstone bridge is an electrical circuit used to precisely measure
12- an unknown resistance. This function calculates Rx when the three other
11+ A Wheatstone bridge is an electrical circuit used to precisely measure
12+ an unknown resistance. This function calculates Rx when the three other
1313 resistances in the bridge are known.
1414
1515 Circuit Diagram:
16-
16+
1717 R1 R2
1818 +--/\/\/--+--/\/\/--+
1919 | | |
2020 Vin Vg Vout
2121 | | |
2222 +--/\/\/--+--/\/\/--+
2323 R3 Rx
24-
24+
2525 This solver uses the balanced bridge formula:
2626 Rx = (R2/R1) × R3
27-
27+
2828 Args:
2929 resistance_1 (R1): First known resistance
3030 resistance_2 (R2): Second known resistance
3131 resistance_3 (R3): Third known resistance
32-
32+
3333 Returns:
3434 float: The calculated unknown resistance (Rx)
3535
You can’t perform that action at this time.
0 commit comments