Skip to content

Commit a09ead4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 25abcc2 commit a09ead4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

boolean_algebra/buffer_gate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
In 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:
3636
if __name__ == "__main__":
3737
import doctest
3838

39-
doctest.testmod()
39+
doctest.testmod()

electronics/wheatstone_bridge.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)