|
Download math/math-000.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/math/math-000.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@034ba678829a1c436b19d43dd3adab33b5170a80/math/math-000.jsonl
-
curl -L -o math-000.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/math/math-000.jsonl
1.42 kB
| {"type": "session", "harness": "opencode", "id": "math-000", "name": "linear algebra"} | |
| {"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 linear algebra in math, with concrete details and common pitfalls. Include a runnable code example with its expected output."}} | |
| {"type": "message", "message": {"role": "assistant", "content": "An eigenvalue λ of matrix A satisfies A·v = λ·v for nonzero vector v.\n\n```python\nimport numpy as np\n\nA = np.array([[4, 2], [1, 3]])\neigenvalues, eigenvectors = np.linalg.eig(A)\nprint('Eigenvalues:', eigenvalues)\nprint('Eigenvectors:')\nprint(eigenvectors)\n```\n\nFor A = [[4,2],[1,3]], the characteristic polynomial is\nλ² - 7λ + 10 = 0, giving λ₁=5, λ₂=2.\n\nThe eigenvector for λ=5 is [2,1]ᵀ and for λ=2 is [1,−1]ᵀ.\n\n**Key properties:**\n- trace(A) = sum of eigenvalues\n- det(A) = product of eigenvalues\n- A is diagonalizable if it has n linearly independent eigenvectors"}} | |