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


Groups > comp.soft-sys.math.mathematica > #11906

Re: Reduce command Mathematica

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Reduce command Mathematica
Date 2012-09-29 07:09 +0000
Message-ID <k466ri$a8i$1@smc.vnet.net> (permalink)
References <20120928024928.42056685E@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


eqn = 2 n - Tanh[z] Tanh[2 n z] == 0;

Reduce[{eqn, Element[n, Integers],
  Element[z, Reals]}, z]

n == 0 && (z == 0 || (z \[Element] Reals && z != 0))

eqn /. n -> 0

True

Or for a specific value of n, say n=2:

sol = ((Solve[#, z][[1]] &) /@
   With[{n = 2},
    List @@
     FullSimplify[
      Reduce[{
        2 n - Tanh[z] Tanh[2 n z] == 0,
        Re[z] == 0}, z],
      Element[C[1], Integers]]])

Reduce::ztest: Unable to decide whether numeric quantities
{Re[Log[-Sqrt[1/3 (2+Times[<<2>>])]]],Re[Log[Sqrt[1/3 (2-I
Power[<<2>>])]]],Re[Log[-Sqrt[1/3 (2+Times[<<2>>])]]],Re[Log[Sqrt[1/3
(2+I Power[<<2>>])]]]} are equal to zero. Assuming they are. >>

{{z -> (1/2)*I*
         (-ArcCot[2/Sqrt[5]] +
            4*Pi*C[1])},
   {z -> (1/2)*I*(Pi + 4*Pi*C[1])},
   {z -> (1/2)*I*Pi*(-1 + 4*C[1])},
   {z -> (1/2)*I*(2*Pi -
            ArcCot[2/Sqrt[5]] +
            4*Pi*C[1])},
   {z -> (1/2)*I*
         (ArcCot[2/Sqrt[5]] +
            4*Pi*C[1])},
   {z -> (1/2)*I*(-2*Pi +
            ArcCot[2/Sqrt[5]] +
            4*Pi*C[1])}}

FullSimplify[eqn /. n -> 2 /. sol,
 Element[C[1], Integers]]

FullSimplify::infd: Expression Tan[1/2 \[Pi] (-1+4 C[1])] Tan[2 \[Pi]
(-1+4 C[1])] simplified to Indeterminate. >>

FullSimplify::infd: Expression 4+Tan[1/2 \[Pi] (-1+4 C[1])] Tan[2
\[Pi] (-1+4 C[1])] simplified to Indeterminate. >>

{True, True, Indeterminate == 0, True, True, True}


Bob Hanlon


On Thu, Sep 27, 2012 at 10:49 PM, Oznur Oztunc <oznr83@gmail.com> wrote:
> Hi,
> I have the following system.Why isn't Reduce able to find the solution? I have tried some command (Solve). But I can't be solve this equation.
> Reduce[2 n - Tanh[z] Tanh[2 n z] == 0, z]
>
> Regards, and thanks to all who will answer!
> =D6snur =D6stun=E7
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Reduce command Mathematica Bob Hanlon <hanlonr357@gmail.com> - 2012-09-29 07:09 +0000

csiph-web