Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
set_namespace(rosettacode);
|
||||
|
||||
begin_funct(compose)_arg(f, g);
|
||||
[]_ret(x)_calc([f]([g]([x])));
|
||||
end_funct[];
|
||||
|
||||
me_msg()_funct(compose)_arg(f)_sin()_arg(g)_asin()_var(x)_value(0.5); // result: 0.5
|
||||
|
||||
reset_namespace[];
|
||||
13
Task/Function-composition/Diego/function-composition-2.diego
Normal file
13
Task/Function-composition/Diego/function-composition-2.diego
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
set_namespace(rosettacode);
|
||||
|
||||
with_funct(f)_arg({int}, x)_ret()_calc([x] * [x]);
|
||||
with_funct(g)_arg({int}, x)_ret()_calc([x] + 2);
|
||||
|
||||
begin_funct(compose)_arg(f, g);
|
||||
[]_ret(x)_calc([f]([g]([x])));
|
||||
end_funct[];
|
||||
|
||||
me_msg()_funct(compose)_arg(f)_funct(f)_arg(g)_funct(g)_var(x)_v(10); // result: 144
|
||||
// or me_msg()_funct(compose)_arg({f}, f)_arg({g}, g)_var(x)_v(10);
|
||||
|
||||
reset_ns[];
|
||||
Loading…
Add table
Add a link
Reference in a new issue