If you guess | x = 0.2, | Solves to: | x = 0.82413 |
If you guess | x = -9, | Solves to: | x = -0.82413 |
Equation for circle: | x^{2} + y^{2} = R^{2} |
Equation for sine curve: | y = A * sin(x) |
Guess | x = 3, | y = 5, | -> | x = 0.7391, | y = 0.6736 |
Guess | x = -2, | y = -2, | -> | x = -0.7391, | y = -0.6736 |
cos(qA) + 2*cos(qB) | = 2 + 0.2*cos(t) |
2*sin(qB) - sin(qA) | = 0.3*sin(3*t) |
x = r*cos(θ) | where x = cos(1.2*t) |
y = r*sin(θ) | where y = sin(t) |
Equation for circle: | x^{2} + y^{2} = R^{2} |
Equation for sine curve: | y = A * sin(x) |
C code
CodeNonlinearEqns.c |
Compile and link source code.
Modify input values in CodeNonlinearEqns.in |
Fortran code
CodeNonlinearEqns.f |
Compile and link source code.
Modify input values in CodeNonlinearEqns.in |
MATLAB®
CodeNonlinearEqns.m |
Invoke MATLAB® and type CodeNonlinearEqns
Modify input values in CodeNonlinearEqns.m |
% FILE: CodeNonlinearEqns.1 % % Residual R x y % (UNITS) (meters) (meters) (meters) 1.221E-15 1.00E+00 7.391E-01 6.736E-01 1.177E-14 1.50E+00 1.181E+00 9.249E-01 3.483E-13 2.00E+00 1.740E+00 9.857E-01 2.209E-13 2.50E+00 2.409E+00 6.689E-01 4.656E-15 3.00E+00 2.997E+00 1.446E-01