mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-17 12:31:04 +01:00
13 lines
192 B
Lua
13 lines
192 B
Lua
|
|
function add(a,b)
|
||
|
|
return a + b
|
||
|
|
end
|
||
|
|
|
||
|
|
function parallelresistance(a,b)
|
||
|
|
return 1.0 / (a * b)
|
||
|
|
end
|
||
|
|
|
||
|
|
function init()
|
||
|
|
RegisterFuncTwoArg("add")
|
||
|
|
RegisterFuncTwoArg("parallelresistance")
|
||
|
|
end
|