tinycodinglm / sci /phys-0030.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame Contribute Delete
1.45 kB
opencode trace
System 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 c...

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.

User

Explain the key concepts of electromagnetism in physics, with concrete details and common pitfalls.

Assistant

1. Gauss's Law: ∮E·dA = Q/ε₀
Electric charges create electric fields. Field lines start on +, end on −.

2. Gauss's Law for Magnetism: ∮B·dA = 0
No magnetic monopoles. Magnetic field lines always form closed loops.

3. Faraday's Law: ∮E·dl = −dΦ_B/dt
Changing magnetic field creates electric field (induction).
This is how generators and transformers work.

4. Ampère-Maxwell Law: ∮B·dl = μ₀I + μ₀ε₀·dΦ_E/dt
Currents AND changing electric fields create magnetic fields.
The displacement current term was Maxwell's key insight.

Together: They predict electromagnetic waves traveling at c = 1/√(μ₀ε₀) ≈ 3×10⁸ m/s.