Displaying 1 result from an estimated 1 matches for "log_raise".
Did you mean:
  log_base
  
2007 May 20
0
optional fields in function declarations; Solved
thank you to both Adaikalavan and Patrick.
on the basis of Adaikalavan example this is an example that point out  my problems.
>log_raise=function(num, exp, base){return(log(num^exp,base))}
I would like to have optional fields, so some settings to be default parameters;
if I declare the function as above the operator must of course input all the variables.
Finally I could fix as follow.
> log_raise=function(num, exp=2, base=exp...