mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
refactor: init
This commit is contained in:
30
src/pages/tools/number/generic-calc/data/ohmsLaw.ts
Normal file
30
src/pages/tools/number/generic-calc/data/ohmsLaw.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import type { GenericCalcType } from './types';
|
||||
|
||||
const ohmsLawCalc: GenericCalcType = {
|
||||
title: "Ohm's Law",
|
||||
name: 'ohms-law',
|
||||
description: 'Calculates voltage, current and resistance',
|
||||
formula: 'V = I * R',
|
||||
presets: [],
|
||||
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;
|
||||
Reference in New Issue
Block a user