|
Download math/math-0175.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/math/math-0175.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/math/math-0175.jsonl
-
curl -L -o math-0175.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/1c6bb525d6b4b9cdb15d2a75d54734eb29bbb8cb/math/math-0175.jsonl
1.38 kB
| {"type": "session", "harness": "opencode", "id": "math-0175", "name": "Linear Algebra for Programming"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert mathematician and programmer."}} | |
| {"type": "message", "message": {"role": "user", "content": "Explain linear algebra for programming"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "Vector operations: dot, cross, norm, normalize, projection, reflection.\n\nMatrix operations: multiply O(n^3), transpose, determinant, inverse.\nMatrix-vector: Ax = linear combination of columns of A with weights x.\n\nDeterminant: |A| = 0 means singular (non-invertible). For 2x2: ad-bc. For nxn: cofactor expansion or Gaussian elimination.\n\nEigenvalues: Av = lambda*v. Characteristic polynomial det(A-lambda*I)=0.\nPower method: find dominant eigenvalue by iterating x_{k+1} = Ax_k / ||Ax_k||.\n\nSVD: A = U*Sigma*V^T. Sigma has singular values on diagonal. Rank = count of non-zero singular values.\n\nApplications:\n- Rotation matrices: 2D: [[cos,-sin],[sin,cos]]. 3D: Euler angles, quaternions.\n- PCA: eigendecomposition of covariance matrix. Dimensionality reduction.\n- Least squares: x = (A^T A)^{-1} A^T b. Normal equations.\n- Graph Laplacian: L = D - A. Eigenvalues relate to connectivity, spectral clustering.\n- PageRank: power iteration on modified adjacency matrix."}} | |