|
Download sci/phys-0015.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.58 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/sci/phys-0015.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@034ba678829a1c436b19d43dd3adab33b5170a80/sci/phys-0015.jsonl
-
curl -L -o phys-0015.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/sci/phys-0015.jsonl
1.58 kB
| {"type": "session", "harness": "opencode", "id": "phys-0015", "name": "thermodynamics"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} | |
| {"type": "message", "message": {"role": "user", "content": "Explain the key concepts of thermodynamics in physics, with concrete details and common pitfalls. Include a runnable code example with its expected output."}} | |
| {"type": "message", "message": {"role": "assistant", "content": "**Zeroth Law:** If A↔B and B↔C are in thermal equilibrium, then A↔C.\nDefines temperature measurement.\n\n**First Law:** ΔU = Q − W (energy conservation).\nHeat added minus work done equals internal energy change.\n\n**Second Law:** Entropy of isolated system never decreases.\nΔS ≥ Q/T. Heat flows hot→cold, not reverse.\n\nCarnot efficiency: η = 1 − T_cold/T_hot\n\n**Third Law:** As T→0, S→0. Absolute zero is unattainable.\n\n```python\nimport numpy as np\n\n# Carnot engine efficiency\nT_hot = 600 # Kelvin\nT_cold = 300\nefficiency = 1 - T_cold / T_hot\nprint(f'Carnot efficiency: {efficiency:.1%}') # 50.0%\n\n# Entropy change\ndQ = 1000 # Joules\nT = 400 # Kelvin\ndS = dQ / T\nprint(f'Entropy change: {dS:.2f} J/K') # 2.50 J/K\n```"}} | |