Files
omni-tools/src/pages/tools/number/generic-calc/data/ohmsLaw.ts
Ibrahima G. Coulibaly 6310fbdc0e chore: use full meta init
2025-04-17 08:03:18 +01:00

34 lines
597 B
TypeScript

import type { GenericCalcType } from './types';
const ohmsLawCalc: GenericCalcType = {
icon: 'mdi:ohm',
keywords: [],
shortDescription: '',
name: "Ohm's Law",
path: 'ohms-law',
description: 'Calculates voltage, current and resistance',
formula: 'V = I * R',
presets: [],
variables: [
{
name: 'V',
title: 'Voltage',
unit: 'volt',
default: 5
},
{
name: 'I',
title: 'Current',
unit: 'ampere',
default: 1
},
{
name: 'R',
title: 'Resistance',
unit: 'ohm'
}
]
};
export default ohmsLawCalc;