subtract

MapdlMath.subtract(obj1, obj2)

Subtract two ANSYS vectors or matrices.

Parameters
  • obj1 (ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat) – Ansys object.

  • obj2 (ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat) – Ansys object.

Returns

ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat – Difference of the two input vectors or matrices. Type of the output matches the type of the input.

Examples

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