#NEWLINE# def test_UserDefinedFunctionSolve_3D( self ) : #NEWLINE# #INDENT# resultShouldBe = numpy . array ( [ ( - 2.46874698 ) , ( - 0.43649152 ) , 1.88125938 ] ) #NEWLINE# model = pyeq2 . Models_3D . UserDefinedFunction . UserDefinedFunction ( 'SSQABS' , 'Default' , 'a + b*X + c*Y' ) #NEWLINE# pyeq2 . dataConvertorService ( ) . ConvertAndSortColumnarASCII ( DataForUnitTests . asciiDataInColumns_3D_small , model , False ) #NEWLINE# result = model . Solve ( ) #NEWLINE# self . assertTrue ( numpy . allclose ( resultShouldBe , resultShouldBe , rtol = 1e-06 , atol = 1e-300 ) )