Salome HOME
updated copyright message
[modules/med.git] / src / MEDCalculator / Swig / test2.spy
index bb32a649c8b0577e6d4f4cdaa3ba383ee40bef4c..7bb0a6985233bb8821c3f04a9358ce2b6c45b3ef 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2007-2013  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2023  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -35,9 +35,9 @@ Power2=Power(1:3,:,2:)+(3+5)
 Power=0
 Power3=Power2
 3.6/Power3(0:2,:,2)
-print 2+Power3(0:2,:,:)*4
+print(2+Power3(0:2,:,:)*4)
 Power4=Power3.magnitude()
-print Power3.getValues()
+print(Power3.getValues())
 Power4.applyFunc("3*x")
 Power6=Power(0:2,:,1:4)
 Power7=Power(7:9,:,4:)