Usable proof of concept of generated variables

This commit is contained in:
Daniel Dunn
2025-04-02 12:41:18 -06:00
parent 0d025a90af
commit 3264640a07
13 changed files with 358 additions and 53 deletions

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