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 | Description |
---|---|---|
static class |
PolynomialParser.Unit |
Unit for the coefficients.
|
Constructor | Description |
---|---|
PolynomialParser(char freeVariable,
PolynomialParser.Unit defaultUnit) |
Simple constructor.
|
Modifier and Type | Method | 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-2018 CS Systèmes d'information. All rights reserved.