Say I have an expression like $a(x)+b(x)\sqrt{c(x)}+d(x)\sqrt{e(x)}+f(x)g(\sin(x))$, where a(x) to f(x) mean polynomials of $x, g(x)$ is a polynomial of $sin(x)$. I wonder how to extract the different terms, e.g., $b(x), c(x), a(x), f(x)$?
If the above expression is too complex, how about the simplified version $a(x)+b(x)\sqrt{c(x)}$? This is what I am primarily concerned about.
The reason I'm concerned with this is that I'd like to get rid of the square root to get a polynomial, to solve the equation. I tried using the eliminate command as suggested by example using Eliminate, but somehow it returns very large coefficients like around $10^{260}$ for all the coefficients.
-1.52537-2.54462 Cos[\[Delta]]^3+Cos[\[Delta]]^2 (2.94197 -1.35683 Sin[\[Delta]])+2.44869 Sin[\[Delta]]-0.853005 Sin[\[Delta]]^2+Cos[\[Delta]] (4.69792 -2.41511 Sin[\[Delta]]-0.180872 Sin[\[Delta]]^2)+Sqrt[1/25-(0.102901 -0.19724 Cos[\[Delta]]-0.0525858 Sin[\[Delta]])^2] (3.77625 -6.10864 Cos[\[Delta]]^2+0.16943 Sin[\[Delta]]-4.70718 Sin[\[Delta]]^2+Cos[\[Delta]] (-15.4993+5.25663 Sin[\[Delta]]))
Could someone help, on how to extract the terms or how to solve a polynomial with one or potentially two square roots?
Thanks a lot!
Solve[yourexpression == 0, delta]
andReduce[yourexpression == 0, delta]
, which I assume is what you mean by "solving the polynomial", return reasonable results in almost no time. Wouldn't that be sufficient to solve the equation? $\endgroup$