<s> from __future__ import print_function <EOL> from __future__ import unicode_literals <EOL> from __future__ import absolute_import <EOL> import os , sys , inspect <EOL> if - <NUM_LIT:1> != sys . path [ <NUM_LIT:0> ] . find ( '<STR_LIT>' ) : raise Exception ( '<STR_LIT>' ) <EOL> exampleFileDirectory = sys . path [ <NUM_LIT:0> ] [ : sys . path [ <NUM_LIT:0> ] . rfind ( os . sep ) ] <EOL> pyeq2IimportDirectory = os . path . join ( os . path . join ( exampleFileDirectory , '<STR_LIT:..>' ) , '<STR_LIT:..>' ) <EOL> if pyeq2IimportDirectory not in sys . path : <EOL> sys . path . append ( pyeq2IimportDirectory ) <EOL> import pyeq2 <EOL> equation = pyeq2 . Models_3D . Spline . Spline ( <NUM_LIT:1.0> , <NUM_LIT:3> , <NUM_LIT:3> ) <EOL> data = equation . exampleData <EOL> pyeq2 . dataConvertorService ( ) . ConvertAndSortColumnarASCII ( data , equation , False ) <EOL> equation . Solve ( ) <EOL> print ( "<STR_LIT>" , equation . GetDisplayName ( ) , str ( equation . GetDimensionality ( ) ) + "<STR_LIT:D>" ) <EOL> print ( "<STR_LIT>" , equation . fittingTargetDictionary [ equation . fittingTarget ] , '<STR_LIT:=>' , equation . CalculateAllDataFittingTarget ( equation . solvedCoefficients ) ) <EOL> print ( ) <EOL> print ( pyeq2 . outputSourceCodeService ( ) . GetOutputSourceCodeCPP ( equation ) ) </s>
