mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-17 04:21:01 +01:00
deprecate perl version, make go version the new one (2.0.0)
This commit is contained in:
17
test.lua
Normal file
17
test.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
function add(a,b)
|
||||
return a + b
|
||||
end
|
||||
|
||||
function test(a)
|
||||
return a
|
||||
end
|
||||
|
||||
function parallelresistance(a,b)
|
||||
return 1.0 / (a * b)
|
||||
end
|
||||
|
||||
function init()
|
||||
register("add", 2, "addition")
|
||||
register("test", 1, "test")
|
||||
register("parallelresistance", 2, "parallel resistance")
|
||||
end
|
||||
Reference in New Issue
Block a user