public class PolynomialParser extends Object
IERS conventions tables display polynomial parts using several different formats, like the following ones:
This class parses all these formats and returns the coefficients.
SeriesTerm
,
PoissonSeries
,
BodiesElements
Modifier and Type | Class and Description |
---|---|
static class |
PolynomialParser.Unit
Unit for the coefficients.
|
Constructor and Description |
---|
PolynomialParser(char freeVariable,
PolynomialParser.Unit defaultUnit)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
parse(String expression)
Parse a polynomial expression.
|
public PolynomialParser(char freeVariable, PolynomialParser.Unit defaultUnit)
freeVariable
- name of the free variabledefaultUnit
- unit to use if no unit found while parsingpublic double[] parse(String expression)
expression
- polynomial expression to parseCopyright © 2002-2020 CS Group. All rights reserved.