home

File: cosd.m (Calls: 5, Time: 0.235 s)


Lines where the most time was spent

Line Number Code Calls Total time (s)
20
I = x * inv(180);
5 0.048
21
r = cos (I .* pi);
5 0.058
22
I = I + 0.5;
5 0.017
23
r(I == fix (I) & isfinite (I)) = 0;
5 0.112


Coverage results

Total lines in file 25
Non-code lines (comments, blank lines) 19
Code lines that did run 4
Code lines (lines that can run) 4
Code lines (Code lines that did not run) 0
Coverage (did run/can run) 100.00 %


Function listing

Line Calls Time (s) Source code
1
//=============================================================================
2
// Copyright (c) 2016-2019 Allan CORNET (Nelson)
3
//=============================================================================
4
// LICENCE_BLOCK_BEGIN
5
// This program is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 2 of the License, or
8
// (at your option) any later version.
9
// 
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
// GNU General Public License for more details.
14
// 
15
// You should have received a copy of the GNU General Public License
16
// along with this program.  If not, see .
17
// LICENCE_BLOCK_END
18
//=============================================================================
19
function r = cosd (x)
20 5 0.048
  I = x * inv(180);
21 5 0.058
  r = cos (I .* pi);
22 5 0.017
  I = I + 0.5;
23 5 0.112
  r(I == fix (I) & isfinite (I)) = 0;
24
endfunction
25
//=============================================================================


Generated by: Nelson 2019-Apr-26 21:17:50

home