Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Function-definition/RLaB/function-definition-1.rlab
Normal file
4
Task/Function-definition/RLaB/function-definition-1.rlab
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
>> class(sin)
|
||||
function
|
||||
>> type(sin)
|
||||
builtin
|
||||
9
Task/Function-definition/RLaB/function-definition-2.rlab
Normal file
9
Task/Function-definition/RLaB/function-definition-2.rlab
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
f = function(x, y)
|
||||
{
|
||||
return x + y;
|
||||
};
|
||||
|
||||
>> class(f)
|
||||
function
|
||||
>> type(f)
|
||||
user
|
||||
6
Task/Function-definition/RLaB/function-definition-3.rlab
Normal file
6
Task/Function-definition/RLaB/function-definition-3.rlab
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
somelist = <<>>;
|
||||
somelist.f = function(x, y)
|
||||
{
|
||||
rval = x + y;
|
||||
return rval;
|
||||
};
|
||||
6
Task/Function-definition/RLaB/function-definition-4.rlab
Normal file
6
Task/Function-definition/RLaB/function-definition-4.rlab
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
g = function(x, y)
|
||||
{
|
||||
global(somelist);
|
||||
rval = x * somelist.f(x, 2*y);
|
||||
return rval;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue