Skip to content

Instantly share code, notes, and snippets.

@raydsameshima
Created September 6, 2021 21:04
Show Gist options
  • Save raydsameshima/8cbff039e5810c4f123b8b58870509eb to your computer and use it in GitHub Desktop.
Save raydsameshima/8cbff039e5810c4f123b8b58870509eb to your computer and use it in GitHub Desktop.
Modern Thermodynamics
sage: g = 9.8*units.length.meter/(units.time.second^2);
....: h = 10*units.length.meter;
....: cw = 4.1868*units.energy.joule/(units.temperature.celsius*units.mass.gram);t = g*h/cw
sage: t
23.4068978694946*celsius*gram*meter^2/(joule*second^2)
sage: tt = t/(units.temperature.celsius)
sage: tt.convert()
0.0234068978694946
@raydsameshima
Copy link
Author

problem 1.11

sage: torque = 200units.force.newtonunits.length.meter
sage: rpm = 2pi4000/(units.time.minute)
sage: power = torquerpm
sage: power.convert(units.power.horsepower)
(4000000000000000000/111854980737340533
pi)horsepower
sage: n((4000000000000000000/111854980737340533
pi))
112.345203865957
sage: power.convert(units.power.watt)
(80000/3*pi)watt
sage: n((80000/3
pi))
83775.8040957278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment