Functions | |
y (I==round(I)&finite(I))=0 | |
endfunction | !error (cosd())%!error(cosd(1 |
endfunction | !assert (cosd(0:10:80), cos(pi *[0:10:80]/180),-10 *eps)%!assert(cosd([0 |
Variables | |
function | y |
endif | I = x / 180 |
endfunction !assert | ( | cosd(0:10:80) | , | |
cos(pi *[0:10:80]/180) | , | |||
-10 * | eps | |||
) |
endfunction !error | ( | cosd() | ) |
I = x / 180 |
y |
Initial value:
cosd (x) if (nargin != 1) print_usage ()