Documentation sections
Ohm's Law Calculator
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug ohms-law. Calculate voltage, current, resistance, and power using Ohm's Law. Enter any two values to solve for the remaining two quantities.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| voltagenumber | V | 0 … 1000000 | 5 | Set to -1 to solve for this value |
| currentnumber | A | −1 … 1000000 | -1 | Set to -1 to solve for this value |
| resistancenumber | Ω | −1 … 1000000000000 | 1000 | Set to -1 to solve for this value |
| powernumber | W | −1 … 1000000000000 | -1 | Set to -1 to solve for this value |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| voltage | V | Voltage |
| currentheadline | A | Current |
| resistance | Ω | Resistance |
| power | W | Power |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.