Group Abstract Group Abstract

Message Boards Message Boards

code for solution of 2 algebraic equations

hello dears

i am new to the mathematica forum as well as to using mathematica.
i am a phd student and have developed a mathematical model, now needing the help of you guys in finding a solution
2cos θ1 - 1.5sin θ1 = 0.08 ( (cos θ2)^2 )- 0.08( (sin θ2)^2 )+(.05)/θ1 (cos ( θ1/2))     (1)
2sin θ1 + 1.5cos θ1 = 2(0.08 cos θ2 sin θ2)+ sin(θ1/2)                                   (2)

This is a set of 2 equations with two unknowns, θ1 and θ2.
If somebody can help me to solve this seemingly easy system but i have unsuccessfully tried a lot.


if any body can help me
POSTED BY: farid khattak
1 year ago
The first step is to write both equations in Mathematica's syntax. For example:
2sin θ1+1.5cos θ1=2(.08cos θ2 sin θ2)+ sin(θ1/2)
Should be:
2 Sin[theta1]+ 1.5 Cos[theta1] == 2(0.08 Cos[theta2] Sin[theta2])+Sin[theta1/2]
If you are new to using Mathematica, you will want a general overview before using it. Please see the Mathematica Virtual Book for an introduction to the correct syntax.

Once you have both equations written out, you can try giving it to a function such as Solve or NSolve.
POSTED BY: Sean Clarke
1 year ago
I don't think this system has a solution (over the reals). If we define
f[θ_, ψ_] := 2 Cos[θ] - 1.5 Sin[θ] - 0.08 Cos[ψ]^2 + 0.08 Sin[ψ]^2 - 0.05 Cos[θ/2]/θ
g[θ_, ψ_] := 2 Sin[θ] + 1.5 Cos[θ] - 0.16 Cos[ψ] Sin[ψ] - Sin[θ/2]
then we'd like to know where 
f[θ, ψ] == g[θ, ψ] == 0
If we plot all three functions, it appears they don't simultaneously intersect.
Plot3D[{f[x, y], g[x, y], 0}, {x, -10, 10}, {y, -10, 10}]
POSTED BY: Chip Hurst
1 year ago
Hello Mr. Chip Hurst

actually, the angles theta 1 and theta 2 written above are functions of time t.

and i need to solve them as function of time for onward plotting.
 i hope, you will keep on trying to find out any way for this issue.
thanks anyway.
POSTED BY: Muhammad Farid
11 months ago
Regardless of whether these are functions of time or not, the plot suggests choosing any value for θ1 and θ2 will not satisfy the system.

i.e. suppose for t = 1, θ1[1] = x and θ2[1] = y, then the plot suggests 
f[x, y] == g[x, y] == 0
is not satisfied.
POSTED BY: Chip Hurst
11 months ago