Ohm Law
ohm_lawOhm's law for one passive resistor. Give any two of voltage (volts), current (amperes), resistance (ohms) and power (watts). The other two come back as exact rationals. A third or fourth value is checked and rejected when it disagrees. Zero volts across a positive resistance is a dead circuit. Voltage across zero ohms, or voltage with zero current, is rejected. Power and resistance are accepted only when both square roots are rational. SI units, no prefixes. Returns JSON with: voltage, voltageFraction, current, currentFraction, resistance, resistanceFraction, power, powerFraction. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/ohm-law
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ohm_law"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| power | No | ||
| current | No | ||
| voltage | No | ||
| resistance | No |