mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
30 lines
472 B
TypeScript
30 lines
472 B
TypeScript
|
|
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;
|