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
/
PhabricatorSinChartFunction.php
blob
fd0142afdb60f254301821d8e44f6bd8888e8638
1
<
?php
2
3
final class
PhabricatorSinChartFunction
4
extends
PhabricatorPureChartFunction
{
5
6
const
FUNCTIONKEY
=
'sin'
;
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
[] =
sin
(
deg2rad
(
$x
));
17
}
18
19
return
$yv
;
20
}
21
22
}