{"uid":"cap_X7fTimbvYfyRtUQiyWF7B","slug":"signaldesk-ai-linear-interpolation-6bcaf0cc","name":"SignalDesk AI Linear Interpolation","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/math/linear-interpolate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"x":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"Finite number."},"x0":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"Finite number."},"x1":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"Finite number."},"y0":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"Finite number."},"y1":{"type":"number","maximum":1000000000000000,"minimum":-1000000000000000,"description":"Finite number."}}},"responseSchema":{"type":"json","example":{"y":15}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J94u5cZ8Vw6PbRIpgVkVX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the linearly interpolated y-value for a given x between two known data points (x0,y0) and (x1,y1)","exampleAgentPrompt":"Can you linearly interpolate to find the y value at x=15, where x0=10, y0=0, x1=20, and y1=100?","exampleUseCases":[{"title":"Animate value between keyframes","prompt":"I have a keyframe animation where at frame 0 the opacity is 0 and at frame 60 it is 255 — what is the opacity at frame 40?"},{"title":"Estimate sensor reading at timestamp","prompt":"My sensor reads 30 degrees at time 100 and 80 degrees at time 200 — can you interpolate what the temperature would be at time 150?"},{"title":"Scale score to new range","prompt":"I need to map a test score of 65 that sits between 50 and 100 on the old scale to a new scale that runs from 0 to 10 — what is the interpolated value?"}],"resultDescription":"Returns a JSON object containing the single numeric field 'y', which is the linearly interpolated value at the given x position between the two provided data points using the standard linear interpolation formula: y = y0 + (x - x0) * (y1 - y0) / (x1 - x0).","failureModes":["x0 equals x1 causing division by zero (undefined behavior or error)","Missing required fields x, x0, x1, y0, or y1 returns a validation error","Values outside the allowed range [-1e15, 1e15] are rejected","Non-numeric inputs cause schema validation failure","Payment not included or insufficient USDC causes 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, stateless computation of a single linear interpolation without setting up local math libraries. At $0.001 USDC per call it is ideal for AI agents that need occasional on-demand interpolation in workflows where installing numeric libraries is impractical. Prefer this for real-time pipelines needing a reliable hosted math microservice.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:51.986Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-linear-interpolation-6bcaf0cc"}