Solves a 3x3 system A*x=b for one unknown.
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)
Syntax
C# |
---|
public static double SolveZ( Vector3d a1, Vector3d a2, Vector3d a3, Vector3d b ) |
Visual Basic (Declaration) |
---|
Public Shared Function SolveZ ( _ a1 As Vector3d, _ a2 As Vector3d, _ a3 As Vector3d, _ b As Vector3d _ ) As Double |
Visual C++ |
---|
public: static double SolveZ( Vector3d^ a1, Vector3d^ a2, Vector3d^ a3, Vector3d^ b ) |
Parameters
- a1
- Type: ceometric.VectorGeometry..::.Vector3d
The first column of the coefficient matrix A.
- a2
- Type: ceometric.VectorGeometry..::.Vector3d
The second column of the coefficient matrix A.
- a3
- Type: ceometric.VectorGeometry..::.Vector3d
The third column of the coefficient matrix A.
- b
- Type: ceometric.VectorGeometry..::.Vector3d
The load vector b.
Return Value
Returns the unknown x3 of the vector of unknowns x = (x1, x2, x3).
Remarks
Uses Cramer's rule. Takes 29 flops and one division.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | The determinant of Matrix A is zero: the vectors a1, a2 and a3 are linearly dependent. |