repo.or.cz
/
phabricator.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove all "FileHasObject" edge reads and writes
[phabricator.git]
/
src
/
applications
/
fact
/
chart
/
PhabricatorCosChartFunction.php
blob
46a6904a5939050736bc302c5b2e0226d58ab989
1
<
?php
2
3
final class
PhabricatorCosChartFunction
4
extends
PhabricatorPureChartFunction
{
5
6
const
FUNCTIONKEY
=
'cos'
;
7
8
protected function
newArguments
() {
9
return array
();
10
}
11
12
public function
evaluateFunction
(
array
$xv
) {
13
$yv
=
array
();
14
15
foreach
(
$xv
as
$x
) {
16
$yv
[] =
cos
(
deg2rad
(
$x
));
17
}
18
19
return
$yv
;
20
}
21
22
}