Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Function-composition/Lingo/function-composition-3.lingo
Normal file
16
Task/Function-composition/Lingo/function-composition-3.lingo
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
-- compose new function based on built-in function 'sin' and user-defined function 'asin'
|
||||
f1 = compose(#asin, #sin)
|
||||
put call(f1, _movie, 0.5)
|
||||
-- 0.5000
|
||||
|
||||
-- compose new function based on previously composed function 'f1' and user-defined function 'double'
|
||||
f2 = compose(#double, f1)
|
||||
put call(f2, _movie, 0.5)
|
||||
-- 1.0000
|
||||
|
||||
-- compose new function based on 2 composed functions
|
||||
f1 = compose(#asin, #sin)
|
||||
f2 = compose(#double, #triple)
|
||||
f3 = compose(f2, f1)
|
||||
put call(f3, _movie, 0.5)
|
||||
-- 3.0000
|
||||
Loading…
Add table
Add a link
Reference in a new issue