Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Solving the Quadratic Trignometric Equation
Date: Wed, 08 Feb 2012 04:16:44 -0600
Organization: Aioe.org NNTP Server
Lines: 32
Message-ID: <jgti2e$i8v$1@speranza.aioe.org>
References: <jgtheo$2n0$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: KxP7C87FpUlIFa2G8MjZ8Q.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:757092

On 2/8/2012 4:06 AM, Zeeshan Shareef wrote:
> Dear Friends,
> I have a equation:
>
> a*(sin(theta)^2) + b*sin(2*theta) = c
>
> How I can solve this equation ? I know all the variable a,b and c. Only 'theta' is unknown to me.
>
> Thanks in Advance,
> Zeeshan

may be:

--------------

a=1;
b=2;
c=3;
syms theta

EDU>> double(solve(a*(sin(theta)^2) + b*sin(2*theta) -c,theta))

ans =

    0.9079 + 0.3206i
   -2.2337 + 0.3206i
    0.9079 - 0.3206i
   -2.2337 - 0.3206i

-------------------

--Nasser