| 448 | |
| 449 | |
| 450 | bool EvalFunction :: IsConstant () const |
| 451 | { |
| 452 | if (res_type.iscomplex) return false; |
| 453 | if (res_type.vecdim > 1) return false; |
| 454 | |
| 455 | for (int i = 0; i < program.Size(); i++) |
| 456 | { |
| 457 | EVAL_TOKEN op = program[i].op; |
| 458 | if (op == VARIABLE || op == GLOBVAR) |
| 459 | return false; |
| 460 | } |
| 461 | return true; |
| 462 | } |
| 463 | |
| 464 | double EvalFunction :: EvalConstant () const |
| 465 | { |