(ce: ComputeEngine, s: string)
| 1179 | if (subject !== undefined) return undefined; // more than one part term |
| 1180 | subject = s; |
| 1181 | } else if (!isNumber(term)) { |
| 1182 | return undefined; // non-numeric extra term |
| 1183 | } |
| 1184 | } |
| 1185 | return subject; |
| 1186 | } |
| 1187 | |
| 1188 | /** True if `expr` contains a part term (`Real/Imaginary/Abs/Argument` of a |
| 1189 | * bare symbol) anywhere. */ |
| 1190 | function containsPartTerm(expr: Expression): boolean { |
| 1191 | if (!isFunction(expr)) return false; |
| 1192 | const s = subjectOf(expr); |
no test coverage detected