refactor: init

This commit is contained in:
Ibrahima G. Coulibaly
2025-04-05 04:36:22 +00:00
parent 3014443163
commit ab503c642d
18 changed files with 197 additions and 238 deletions

View 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;