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


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

Solve::ivar: 0 is not a valid variable.

From Ding Yuan <gardener_2003@hotmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Solve::ivar: 0 is not a valid variable.
Date 2012-12-13 09:07 +0000
Message-ID <kac5t6$sna$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Hello,

I am fresh in Mathematica. Can anyone explain what is happening in this code?

Cheers

Ding 


------------
gamma = 1.5; m = 0;
C0 = 1.; CA = 2;
CF = (C0^2 + CA^2)^0.5; CT = (C0 CA)/CF;
Ce = 0.5; CAe = 5 ;
CFe = (Ce^2 + CAe^2)^0.5; CTe = (Ce CAe)/CFe;
delta = (2 C0^2 + gamma CA^2)/(2 Ce^2 + gamma CAe^2);
kza = 1.;
k0[x_] := (-(((x^2 - C0^2) (x^2 - CA^2) )/((C0^2 + CA^2) (x^2 - 
      CT^2))))^0.5
ke[x_] := (-(((x^2 - Ce^2) (x^2 - CAe^2))/((Ce^2 + CAe^2) (x^2 - 
      CTe^2))))^0.5
NSolve[(delta (x^2 - CAe^2) k0[x] BesselI[m + 1, k0[x] kza])/
   BesselI[m, 
    k0[x] kza] + ((x^2 - CA^2) ke[x] BesselK[m + 1, ke[x] kza])/
   BesselK[m, ke[x] kza] == 0, {x, 0, 10}, Reals]

NSolve::ivar: 0 is not a valid variable. >>
NSolve[(0.0941502 (-25 + 
      x^2) (-(((-4 + x^2) (-1. + x^2))/(-0.8 + x^2)))^0.5 BesselI[1, 
     0.447214 (-(((-4 + x^2) (-1. + x^2))/(-0.8 + x^2)))^0.5])/
   BesselI[0, 
    0.447214 (-(((-4 + x^2) (-1. + x^2))/(-0.8 + x^2)))^0.5] + (
   0.199007 (-4 + 
      x^2) (-(((-25 + x^2) (-0.25 + x^2))/(-0.247525 + 
       x^2)))^0.5 BesselK[1, 
     0.199007 (-(((-25 + x^2) (-0.25 + x^2))/(-0.247525 + 
         x^2)))^0.5])/
   BesselK[0, 
    0.199007 (-(((-25 + x^2) (-0.25 + x^2))/(-0.247525 + 
        x^2)))^0.5] == 0, {x, 0, 10}, Reals]

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


Thread

Solve::ivar: 0 is not a valid variable. Ding Yuan <gardener_2003@hotmail.com> - 2012-12-13 09:07 +0000
  Re: Solve::ivar: 0 is not a valid variable. daniel.lichtblau0@gmail.com - 2012-12-14 07:58 +0000

csiph-web