2025-04-02 12:41:18 -06:00
|
|
|
import type { GenericCalcType } from './types';
|
|
|
|
|
|
|
|
|
|
const ohmsLawCalc: GenericCalcType = {
|
|
|
|
|
title: "Ohm's Law",
|
|
|
|
|
name: 'ohms-law',
|
2025-04-03 06:11:21 -06:00
|
|
|
description: 'Calculates voltage, current and resistance',
|
2025-04-02 12:41:18 -06:00
|
|
|
formula: 'V = I * R',
|
2025-04-05 04:36:22 +00:00
|
|
|
presets: [],
|
2025-04-02 12:41:18 -06:00
|
|
|
variables: [
|
|
|
|
|
{
|
|
|
|
|
name: 'V',
|
|
|
|
|
title: 'Voltage',
|
2025-04-07 22:45:13 +01:00
|
|
|
unit: 'volt',
|
2025-04-02 12:41:18 -06:00
|
|
|
default: 5
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'I',
|
|
|
|
|
title: 'Current',
|
2025-04-07 22:45:13 +01:00
|
|
|
unit: 'ampere',
|
2025-04-02 12:41:18 -06:00
|
|
|
default: 1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'R',
|
|
|
|
|
title: 'Resistance',
|
2025-04-07 22:45:13 +01:00
|
|
|
unit: 'ohm'
|
2025-04-02 12:41:18 -06:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default ohmsLawCalc;
|