Skip to content

Commit afb026c

Browse files
Merge branch 'feature/ViniAntunes/first_law_of_thermodynamics' of https://github.com/ViniViniAntunes/Python into feature/ViniAntunes/first_law_of_thermodynamics
2 parents 2d2935c + 507b41c commit afb026c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

physics/first_law_of_thermodynamics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def work(heat: float, internal_energy_variation: float) -> float:
104104

105105
__categorize_system(heat, "heat")
106106
__categorize_system(internal_energy_variation, "internal_energy_variation")
107-
107+
108108
work = heat - internal_energy_variation
109109
__categorize_system(work, "work")
110110
return round(work, 1)
@@ -133,7 +133,7 @@ def heat(internal_energy_variation: float, work: float) -> float:
133133

134134
__categorize_system(internal_energy_variation, "internal_energy_variation")
135135
__categorize_system(work, "work")
136-
136+
137137
heat = round(internal_energy_variation + work, 1)
138138
__categorize_system(heat, "heat")
139139
return heat
@@ -162,7 +162,7 @@ def internal_energy_variation(heat: float, work: float) -> float:
162162

163163
__categorize_system(heat, "heat")
164164
__categorize_system(work, "work")
165-
165+
166166
internal_energy_variation = round(heat - work, 1)
167167
__categorize_system(internal_energy_variation, "internal_energy_variation")
168168
return internal_energy_variation

0 commit comments

Comments
 (0)