Recursive `hasCancellation`: true if `e` or any subexpression cancels/overflows.
( e: Expression, x: string, ce: ComputeEngine, depth: number )
| 1027 | } |
| 1028 | if (!ENTIRE_HEADS.has(op)) return false; |
| 1029 | return e.ops.every((arg) => isEntireIn(arg, x)); |
| 1030 | } |
| 1031 | |
| 1032 | const ENTIRE_HEADS = new Set([ |
| 1033 | 'Add', |
| 1034 | 'Subtract', |
| 1035 | 'Negate', |
| 1036 | 'Multiply', |
| 1037 | 'Exp', |
| 1038 | 'Sin', |
| 1039 | 'Cos', |
| 1040 | 'Sinh', |
| 1041 | 'Cosh', |
| 1042 | ]); |
| 1043 | |
| 1044 | /** |
no test coverage detected