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

30 lines
472 B
TypeScript
Raw Normal View History

import type { GenericCalcType } from './types';
const ohmsLawCalc: GenericCalcType = {
title: "Ohm's Law",
name: 'ohms-law',
formula: 'V = I * R',
selections: [],
variables: [
{
name: 'V',
title: 'Voltage',
unit: 'V',
default: 5
},
{
name: 'I',
title: 'Current',
unit: 'A',
default: 1
},
{
name: 'R',
title: 'Resistance',
unit: 'Ω'
}
]
};
export default ohmsLawCalc;