subtract#

MapdlMath.subtract(obj1, obj2)[source]#

Subtract two ANSYS vectors or matrices.

Parameters:
obj1ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat

Ansys object.

obj2ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat

Ansys object.

Returns:
AnsVec or AnsMat

Difference of the two input vectors or matrices. Type of the output matches the type of the input.

Examples

Subtract two APDLMath vectors.

>>> v = mm.ones(10)
>>> w = mm.ones(10)
>>> x = mm.subtract(v, w)