Available under Creative Commons-ShareAlike 4.0 International License.
The pressure p and volume v of a given mass of gas are connected by the relation where a, b and k are constants. Express p in terms of v, and write a script to compute the work done by the gas in expanding from an initial volume to a final volume. 1
Test your solution with the following input:
- 0.01
- 0.001
The initial pressure [kPa]: 100
The initial volume [m3]: 1
The final volume [m3]: 2
- 瀏覽次數:1332