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


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

Re: complex functions handling in M8

Started byBob Hanlon <hanlonr@cox.net>
First post2011-09-14 09:14 +0000
Last post2011-09-14 09:14 +0000
Articles 1 — 1 participant

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


Contents

  Re: complex functions handling in M8 Bob Hanlon <hanlonr@cox.net> - 2011-09-14 09:14 +0000

#4927 — Re: complex functions handling in M8

FromBob Hanlon <hanlonr@cox.net>
Date2011-09-14 09:14 +0000
SubjectRe: complex functions handling in M8
Message-ID<j4pr9b$fic$1@smc.vnet.net>
T0 = 11/10;
alph = 1;
bet = 1;
gam = 1/2;
gam0 = 1/2;
Ie = 5;
Y0 = 0;

Ga[x_, y_, z_] := 
  gam*Ie/((1 + x)^2) - x*z/((1 + x)^2 + I*T0*y*(1 + x));

Gb[x_, y_, z_] := Sqrt[Ga[x, y, z]^2 - bet^2*y^4 + 2*Ie*gam0*bet*y^2];

FM[x_, y_, z_] := -alph*y^2 + Ga[x, y, z] - Gb[x, y, z];

FP[x_, y_, z_] := -alph*y^2 + Ga[x, y, z] + Gb[x, y, z];

Frm[x_, y_, z_] := Re[FM[x, y, z]];

Fim[x_, y_, z_] := Im[FM[x, y, z]];

Frp[x_, y_, z_] := Re[FP[x, y, z]];

Fip[x_, y_, z_] := Im[FP[x, y, z]];

Frm[x, Y0, 3] // FullSimplify[#, Element[x, Reals]] &

Piecewise[{{(5 - 6*x)/(1 + x)^2, 6*x > 5}}, 0]

Fim[x, Y0, 3] // FullSimplify[#, {Element[x, Reals], x != -1}] &

0

Limit[Fim[x, Y0, 3], x -> -1]

0

Frp[x, Y0, 3] // FullSimplify[#, Element[x, Reals]] &

Piecewise[{{(5 - 6*x)*Re[1/(1 + x)^2], 6*x <= 5}}, 0]

Fip[x, Y0, 3] // FullSimplify[#, {Element[x, Reals], x != -1}] &

0

Limit[Fip[x, Y0, 3], x -> -1]

0


Bob Hanlon

---- Dikande <amdikande@googlemail.com> wrote: 

=============
I wish to generate curves from a 3-variable complex function under
Mathematica 8. The results (shape of the curves) I get do not reflect
expectations. I am a rather old mathematica user and used this program
to solve quite complicated complex problems, including root
extractions from functions involving special several complex arguments
functions and never experienced such a failure from Mathematica. In
fact I have always used old versions M7 of latest), and only today I
decided to try M8 and came across this problem. The might be a problem
with handling of complex functions under M8 oder??? This is the code
having a problem:
T0 = 1.1;
alph = 1.0;
bet = 1.0;
gam = 0.5;
gam0 = 0.5;
Ie = 5.0;
Y0 = 0.0;

Ga[x_, y_, z_] :=
  gam*Ie/((1.0 + x)^2) - x*z/((1.0 + x)^2 + I*T0*y*(1.0 + x));

Gb[x_, y_, z_] :=
  Sqrt[Ga[x, y, z]^2 - bet^2*y^4 + 2.0*Ie*gam0*bet*y^2];

FM[x_, y_, z_] := -alph*y^2 + Ga[x, y, z] - Gb[x, y, z];

FP[x_, y_, z_] := -alph*y^2 + Ga[x, y, z] + Gb[x, y, z];

Frm[x_, y_, z_] := Re[FM[x, y, z]];

Fim[x_, y_, z_] := Im[FM[x, y, z]];

Frp[x_, y_, z_] := Re[FP[x, y, z]];

Fip[x_, y_, z_] := Im[FP[x, y, z]];

Plot[Frm[x, Y0, 3.0], {x, 0.0, 10}]

Plot[Frp[x, Y0, 3.0], {x, 0.0, 10}]

Normally Frm[x, Y0, 3] is always zero but M8 displays nonzero data but
not M7!

[toc] | [standalone]


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


csiph-web