testCubes function

void testCubes()

Tests the above methods for cubic functions.

Implementation

void testCubes() {
  String testFormulaCube =
      '300.0 + ( 25.0 * t * t * t ) + ( 26.0 * t * t ) + ( 24.0 * t )';
  List<double> testSet = [4.5, 4.6, 4.7, 4.8];
  print(patternParser(testFormulaCube));
  print(astParser(testFormulaCube));
  print(irParser(testFormulaCube));
  print(computeCube(testFormulaCube, 2));
  print(computeCubeSet(testFormulaCube, testSet));
}