home

File: sind.m (Calls: 5, Time: 0.382 s)


Lines where the most time was spent

Line Number Code Calls Total time (s)
20
I = x * inv(180);
5 0.170
21
r = sin (I .* pi);
5 0.078
22
IDX = I == fix(I) & isfinite (I);
5 0.127
23
r(IDX) = 0;
5 0.006


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 = sind (x)
20 5 0.170
  I = x * inv(180);
21 5 0.078
  r = sin (I .* pi);
22 5 0.127
  IDX = I == fix(I) & isfinite (I);
23 5 0.006
  r(IDX) = 0;
24
endfunction
25
//=============================================================================


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

home