@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 22 lines 338 B view raw
1<?php 2 3final 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}