Files
omni-tools/src/pages/tools/number/generic-calc/data/ohmsLaw.ts

31 lines
539 B
TypeScript
Raw Normal View History

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',
formula: 'V = I * R',
2025-04-05 04:36:22 +00:00
presets: [],
variables: [
{
name: 'V',
title: 'Voltage',
2025-04-07 22:45:13 +01:00
unit: 'volt',
default: 5
},
{
name: 'I',
title: 'Current',
2025-04-07 22:45:13 +01:00
unit: 'ampere',
default: 1
},
{
name: 'R',
title: 'Resistance',
2025-04-07 22:45:13 +01:00
unit: 'ohm'
}
]
};
export default ohmsLawCalc;