Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5369 > unrolled thread

Solving a simple equation

Started byDaniel Kallfaß <eizdealer@web.de>
First post2011-10-04 05:39 +0000
Last post2011-10-05 08:16 +0000
Articles 5 — 5 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Solving a simple equation Daniel Kallfaß <eizdealer@web.de> - 2011-10-04 05:39 +0000
    Re: Solving a simple equation Peter Pein <petsie@dordos.net> - 2011-10-05 08:02 +0000
    Re: Solving a simple equation "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-10-05 08:05 +0000
    Re: Solving a simple equation dimitris <dimmechan@yahoo.com> - 2011-10-05 08:15 +0000
    Re: Solving a simple equation "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-10-05 08:16 +0000

#5369 — Solving a simple equation

FromDaniel Kallfaß <eizdealer@web.de>
Date2011-10-04 05:39 +0000
SubjectSolving a simple equation
Message-ID<j6e675$kds$1@smc.vnet.net>
Hi there, I wonder why the following equation cannot be solved:

\[Kappa] = 1.4
\[CapitalTheta] = 10;
NSolve[Tan[\[Theta] degree] ==
  2*Cot[\[Beta] degree]*(ma1^2*Sin[\[Beta] degree]^2 - 1)/(
   ma1^2*(\[Kappa] + Cos[2 \[Beta] degree]) + 2), \[Beta]]

It says: NSolve::nsmet: This system cannot be solved with the methods
available to NSolve.

Is there something I'm missing? My Voyage 200 solves it without any
issues.

Thanks,
Daniel

[toc] | [next] | [standalone]


#5376

FromPeter Pein <petsie@dordos.net>
Date2011-10-05 08:02 +0000
Message-ID<j6h2um$6sc$1@smc.vnet.net>
In reply to#5369
Am 04.10.2011 07:39, schrieb Daniel Kallfaß:
> Hi there, I wonder why the following equation cannot be solved:
>
> \[Kappa] = 1.4
> \[CapitalTheta] = 10;
> NSolve[Tan[\[Theta] degree] ==
>    2*Cot[\[Beta] degree]*(ma1^2*Sin[\[Beta] degree]^2 - 1)/(
>     ma1^2*(\[Kappa] + Cos[2 \[Beta] degree]) + 2), \[Beta]]
>
> It says: NSolve::nsmet: This system cannot be solved with the methods
> available to NSolve.
>
> Is there something I'm missing? My Voyage 200 solves it without any
> issues.
>
> Thanks,
> Daniel
>

Hi Daniel,

I saved a notebook [1] in the wł. It uses Reduce and/or FindRoot to get 
one or more of the solutions.

Peter

[1] http://dl.dropbox.com/u/3030567/Mathematica/DanielsGleichung.nb


[toc] | [prev] | [next] | [standalone]


#5381

From"Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com>
Date2011-10-05 08:05 +0000
Message-ID<j6h33f$702$1@smc.vnet.net>
In reply to#5369
On Tue, 04 Oct 2011 06:39:49 +0100, Daniel Kallfa=DF <eizdealer@web.de> 
wrote:

> Hi there, I wonder why the following equation cannot be solved:
>
> \[Kappa] = 1.4
> \[CapitalTheta] = 10;
> NSolve[Tan[\[Theta] degree] ==
>   2*Cot[\[Beta] degree]*(ma1^2*Sin[\[Beta] degree]^2 - 1)/(
>    ma1^2*(\[Kappa] + Cos[2 \[Beta] degree]) + 2), \[Beta]]
>
> It says: NSolve::nsmet: This system cannot be solved with the methods
> available to NSolve.
>
> Is there something I'm missing? My Voyage 200 solves it without any
> issues.
>
> Thanks,
> Daniel
>

1. \[Theta] is not defined (though \[CapitalTheta] = 10)
2. degree is not defined (should be Degree?)
3. ma1 is not defined

Despite this, I still get solutions in versions 5.2, 7.0.1, and 8.0.1.  
That you don't, is probably due to stray definitions for the above  
quantities.

[toc] | [prev] | [next] | [standalone]


#5407

Fromdimitris <dimmechan@yahoo.com>
Date2011-10-05 08:15 +0000
Message-ID<j6h3nj$75n$1@smc.vnet.net>
In reply to#5369
Hi.
1) You haven't specified value for ma1.
2) I guess that with degree you meen Degree.
3) You specified value for Capital Theta instead of Theta.
4) The equation has infinity roots as it is a Transcendental equation.
Use FindRoot instead of NSolve. Be careful with the singularities at
n*Pi, n integer.

\[Kappa] = 1.4;
\[Theta] = 10.;
ma1 = 5.;

eq = Tan[\[Theta]*Degree] - ( 2*Cot[\[Beta]]*((ma1^2*Sin[\[Beta]]^2 -
1)/(ma1^2*(\[Kappa] + Cos[2*\[Beta]]) + 2)));

pl = Plot[eq, {\[Beta], -11, 11}, Exclusions -> Table[n Pi, {n, -3,
3}], Frame -> True, Axes -> {True, False}]

For example

FindRoot[eq == 0, {\[Beta], 1}]
FindRoot[eq == 0, {\[Beta], 1.5}]
{\[Beta] -> 0.338175}
{\[Beta] -> 1.52629}

5) Another way is using Reduce.

Clear["Global*`"]

\[Kappa] = 14/10;
\[Theta] = 10;
ma1 = 5;
eq = Tan[\[Theta]*Degree] - (  2*Cot[\[Beta]]*((ma1^2*Sin[\[Beta]]^2 -
1)/(ma1^2*(\[Kappa] + Cos[2*\[Beta]]) + 2)));

 Reduce[eq == 0, \[Beta]]
(*output ommited*)


Regards
Dimitris

[toc] | [prev] | [next] | [standalone]


#5409

From"Dr. Wolfgang Hintze" <weh@snafu.de>
Date2011-10-05 08:16 +0000
Message-ID<j6h3ph$76c$1@smc.vnet.net>
In reply to#5369
"Daniel Kallfaß" <eizdealer@web.de> schrieb im Newsbeitrag 
news:j6e675$kds$1@smc.vnet.net...
> Hi there, I wonder why the following equation cannot be solved:
>
> \[Kappa] = 1.4
> \[CapitalTheta] = 10;
> NSolve[Tan[\[Theta] degree] ==
>  2*Cot[\[Beta] degree]*(ma1^2*Sin[\[Beta] degree]^2 - 1)/(
>   ma1^2*(\[Kappa] + Cos[2 \[Beta] degree]) + 2), \[Beta]]
>
> It says: NSolve::nsmet: This system cannot be solved with the methods
> available to NSolve.
>
> Is there something I'm missing? My Voyage 200 solves it without any
> issues.
>
> Thanks,
> Daniel
>
The constant ma1 has no values assigned. If you set it (e.g. to 5) 
you'll get pretty normal solutions (see below).
PS: I changed angles to radians, hence Beta must be multiplied by 
180/Pi to get it in degrees.

Wolfgang

\[Kappa] = 1.4
\[Theta] = 10*(Pi/180);
ma1 = 5;
NSolve[Tan[\[Theta]] == 2*Cot[\[Beta]]*((ma1^2*Sin[\[Beta]]^2 - 
1)/(ma1^2*(\[Kappa] + Cos[2*\[Beta]]) + 2)), \[Beta]]

1.4

Solve::"ifun"\),
":", "\<\"Inverse functions are being used by (Solve), so some
solutions may not be found; use Reduce for complete solution 
information.


{{\[Beta] -> -2.8034174741802227}, {\[Beta] -> -1.615304107903905}, 
{\[Beta] -> -0.11913447310112904},
{\[Beta] -> 0.33817517940957037}, {\[Beta] -> 1.5262885456858881}, 
{\[Beta] -> 3.0224581804886643}}

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web