|
Download math/math-0176.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 953 Bytes
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/b5bf3ebebe22b46f4f78c2589a5bb814a44293a7/math/math-0176.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@b5bf3ebebe22b46f4f78c2589a5bb814a44293a7/math/math-0176.jsonl
-
curl -L -o math-0176.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/b5bf3ebebe22b46f4f78c2589a5bb814a44293a7/math/math-0176.jsonl
953 Bytes
| {"type": "session", "harness": "opencode", "id": "math-0176", "name": "Matrix Operations and Exponentiation"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert mathematician and programmer."}} | |
| {"type": "message", "message": {"role": "user", "content": "Explain matrix operations for programming"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "Matrix mult: (AB)_{ij} = sum(A_{ik}*B_{kj}). O(n^3).\nMatrix exponentiation: A^n in O(n^3 log n) via binary exponentiation.\n\nFibonacci O(log n): [[1,1],[1,0]]^n = [[F(n+1),F(n)],[F(n),F(n-1)]].\nGeneral: linear recurrence a_n = c1*a_{n-1}+...+ck*a_{n-k} uses k x k companion matrix.\n\nGaussian elimination O(n^3): solve Ax=b, find determinant. Row reduce to upper triangular, back-substitute.\n\nApplications: linear recurrences, graph paths (A^k[i][j] = paths i to j length k), Markov chains, system of equations, determinant (matrix tree theorem)."}} | |