{"uid":"cap_-lZ2MibK_1CzsQYroScn7","slug":"numora-matrix-trace-21855ef3","name":"Numora Matrix Trace","description":"100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.","url":"https://numomo.vercel.app/api/matrix/trace","method":"POST","headers":{},"bodySchema":{"type":"object","required":["A"],"properties":{"A":{"type":"array","description":"Matrix (2D array)"}}},"responseSchema":{"type":"object","required":["success","result","computation"],"properties":{"result":{"type":"object","description":"Computation result varies by endpoint"},"success":{"type":"boolean","description":"Always true on success"},"computation":{"type":"string","description":"Human-readable description of what was computed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bqXvIejpeeUFAVaK_gkk2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the trace (sum of main diagonal elements) of a square matrix","exampleAgentPrompt":"Can you compute the trace of this matrix for me: [[3, 1, 2], [0, 5, 4], [7, 6, 8]]? I need the sum of the diagonal elements.","exampleUseCases":[{"title":"Verify eigenvalue sum property","prompt":"I have a 3x3 matrix [[4, 2, 0], [1, 3, 1], [0, 2, 5]] and I want to verify that the trace equals the sum of its eigenvalues — can you compute the trace for me?"},{"title":"Covariance matrix analysis","prompt":"I'm working on a PCA pipeline and need the trace of this covariance matrix: [[0.9, 0.3, 0.1], [0.3, 0.8, 0.2], [0.1, 0.2, 0.6]] — it tells me the total variance explained."},{"title":"Check identity matrix trace","prompt":"Quick sanity check — compute the trace of this 4x4 identity matrix: [[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]. I expect it to be 4."}],"resultDescription":"Returns a JSON object with a boolean 'success' field, a 'result' object containing the computed trace value (the sum of the main diagonal elements of the input matrix), and a 'computation' string that describes in human-readable form what was computed.","failureModes":["Non-square matrix provided — trace is only defined for square matrices","Missing or malformed 'A' field in request body","Non-numeric values in matrix cells","Payment failure via x402 micropayment protocol","Empty matrix array provided"],"whenToPreferThis":"Choose this endpoint when you need a fast, dependency-free computation of a matrix trace without setting up a local math library. Ideal for AI agents that need on-demand linear algebra operations as part of larger workflows (e.g. PCA, eigenvalue analysis, tensor computations) and want to pay per-call via x402 micropayments on Base rather than maintaining a math server.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:55:33.983Z","isFirstParty":false}