MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / math2

Method math2

ij/src/main/java/ij/macro/Functions.java:540–550  ·  view source on GitHub ↗
(int type)

Source from the content-addressed store, hash-verified

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();

Callers 1

getFunctionValueMethod · 0.95

Calls 4

getFirstArgMethod · 0.95
getLastArgMethod · 0.95
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected