(int type)
| 538 | } |
| 539 | |
| 540 | final double math2(int type) { |
| 541 | double a1 = getFirstArg(); |
| 542 | double a2 = getLastArg(); |
| 543 | switch (type) { |
| 544 | case MIN_OF: return Math.min(a1, a2); |
| 545 | case MAX_OF: return Math.max(a1, a2); |
| 546 | case POW: return Math.pow(a1, a2); |
| 547 | case ATAN2: return Math.atan2(a1, a2); |
| 548 | default: return 0.0; |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | final String getString() { |
| 553 | String str = interp.getStringTerm(); |
no test coverage detected