public class Range extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
Range() |
| Modifier and Type | Method and Description |
|---|---|
Object |
genRange(double low,
double inc,
int steps)
Generates a range [low,low+inc,...,low+inc*(steps-1)]
|
void |
run(Stack inStack)
Throws an exception because this method should never be called under
normal circumstances.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic Object genRange(double low, double inc, int steps)
low - inc - steps - public void run(Stack inStack) throws ParseException
PostfixMathCommandrun in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionCopyright © 2018. All rights reserved.