mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
Usable proof of concept of generated variables
This commit is contained in:
29
src/pages/tools/number/generic-calc/data/ohms_law.ts
Normal file
29
src/pages/tools/number/generic-calc/data/ohms_law.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user