Function G2lib::solveLinearQuadratic2

Function Documentation

int_type G2lib::solveLinearQuadratic2(real_type A, real_type B, real_type C, real_type *x, real_type *y)

Solve the nonlinear system

\[ A x + B y = C \]
\[ x^2 + y^2 = 1 \]
Parameters
  • A[in] first parameter of the linear equation

  • B[in] second parameter of the linear equation

  • C[in] third parameter of the linear equation

  • x[out] x-coordinates of the solutions

  • y[out] y-coordinates of the solutions

Returns

the number of solution 0, 1 or 2