Loading [MathJax]/jax/output/HTML-CSS/jax.js

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 5 years ago

Tofi gravatar image

How to find all roots with solve?

I have the following quantity:

c_p = 1 - (4*sin(th)^2+2*5*sin(th)/pi+(5/(2*pi))^2)

and I am trying to find its roots (the solutions for c_p==0).

When plotting c_p as a function of th between π and π, I can see the curve crosses the x-axis at four positions. However, solve(c_p==0, th) is only giving two roots: [theta=arcsin(54 π+12),theta=arcsin(54 π12)]. It appears that solve can only find the roots that are in the domain of the arcsin function, i.e in the interval [π,π]. Is there a way to get the other two roots?

How to find all roots with solve?

I have the following quantity:

c_p = 1 - (4*sin(th)^2+2*5*sin(th)/pi+(5/(2*pi))^2)

and I am trying to find its roots (the solutions for c_p==0).

When plotting c_p as a function of th between π and π, I can see the curve crosses the x-axis at four positions. However, solve(c_p==0, th) is only giving two roots: [theta=arcsin(54 π+12),theta=arcsin(54 π12)]. It appears that solve can only find the roots that are in the domain of the arcsin function, i.e in the interval [π,π]. [π/2,π/2]. Is there a way to get the other two roots?

How to find all roots with solve?

I have the following quantity:

c_p = 1 - (4*sin(th)^2+2*5*sin(th)/pi+(5/(2*pi))^2)

and I am trying to find its roots (the solutions for c_p==0).

When plotting c_p as a function of th between π and π, I can see the curve crosses the x-axis at four positions. However, solve(c_p==0, th) is only giving two roots: [theta=arcsin(54 π+12),theta=arcsin(54 π12)]. It appears that solve can only find the roots that are in the domain of the arcsin function, i.e in the interval [π/2,π/2]. [π2,π2]. Is there a way to get the other two roots?

How to find all roots with solve?

I have the following quantity:

c_p = 1 - (4*sin(th)^2+2*5*sin(th)/pi+(5/(2*pi))^2)

and I am trying to find its roots (the solutions for c_p==0).

When plotting c_p as a function of th between π and π, I can see the curve crosses the x-axis at four positions. However, solve(c_p==0, th) is only giving two roots: $$\left[{theta} $$\left[theta = -\arcsin\left(\frac{5}{4 \ \pi} + \frac{1}{2}\right),\quad {theta} theta = -\arcsin\left(\frac{5}{4 \ \pi} - \frac{1}{2}\right)\right].$$ It appears that solve can only find the roots that are in the domain of the arcsin function, i.e in the interval [π2,π2]. Is there a way to get the other two roots?