@@ 808-812 (lines=5) @@ | ||
805 | $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord); |
|
806 | $ordK = 1; |
|
807 | $fSqrX = ($x * $x) / 4; |
|
808 | do { |
|
809 | $fTerm *= $fSqrX; |
|
810 | $fTerm /= ($ordK * ($ordK + $ord)); |
|
811 | $fResult += $fTerm; |
|
812 | } while ((abs($fTerm) > 1e-12) && (++$ordK < 100)); |
|
813 | } else { |
|
814 | $f_2_PI = 2 * M_PI; |
|
815 | ||
@@ 863-867 (lines=5) @@ | ||
860 | $fResult = $fTerm = pow($x / 2, $ord) / PHPExcel_Calculation_MathTrig::FACT($ord); |
|
861 | $ordK = 1; |
|
862 | $fSqrX = ($x * $x) / -4; |
|
863 | do { |
|
864 | $fTerm *= $fSqrX; |
|
865 | $fTerm /= ($ordK * ($ordK + $ord)); |
|
866 | $fResult += $fTerm; |
|
867 | } while ((abs($fTerm) > 1e-12) && (++$ordK < 100)); |
|
868 | } else { |
|
869 | $f_PI_DIV_2 = M_PI / 2; |
|
870 | $f_PI_DIV_4 = M_PI / 4; |