Content deleted Content added
Rewritten the Groovy implementation |
|||
Line 92:
return 0;
}
</source>▼
===[[Groovy (programming language)|Groovy]]===▼
<source lang="Groovy">▼
def grooVals = []
11.times {
}▼
grooVals = grooVals.reverse()
for (val in grooVals) {
if (calcVal.isInfinite()) ▼
else ▼
</source>
Line 236 ⟶ 254:
eval { say f($_) } or say "Problem with entry $_: $@"
}
▲</source>
▲===[[Groovy (programming language)|Groovy]]===
▲<source lang="Groovy">
▲ return(Math.sqrt( Math.abs(x) + 5 * Math.pow(x,3) ) );
▲ else
▲}
▲Scanner s = new Scanner(userInput);
▲ grooVals[groovN - ii - 1] = s.nextDouble();
▲ if(calcVal.isInfinite())
▲ println("TOO LARGE");
▲ println(calcVal);
▲}
</source>
|