Hi guys!
This is truly the last resort, tried everything and searched a lot, wouldn't bother you otherwise.
When I try to use the last two functions in the included code mathematica gives me a neverending evaluation, I truly don't know what I am doing wrong. Would really appreciate some enlightening!
PS: in case you were wondering, this is Biot-Savart law, I am trying to calculate the magnetic field caused by a infinite slab of thickness t and width w with current density J
(* just some constants*)
w = 5*10^-6;
t = 3*10^-7;
d = 20*10^-6;
J = (30*10^-3)/(w*t);
\[Mu] = 4*Pi*10^-7;
(* some normal functions *)
r[x_, y_, z_, a_, b_, c_] := ((a - x)^2 + (b - y)^2 + (c - z)^2)^(1/2)
\[Theta][x_, y_, z_, a_, b_, c_] := (Pi/2) -
ArcSin[(y - b)/r[x, y, z, a, b, c]]
\[Alpha][x_, y_, z_, a_, b_, c_] :=
ArcSin[(a - x)/r[x, y, z, a, b, c]]
(* THESE NEXT TWO ARE THE ONES WITH PROBLEMS: *)
Bx[x_, y_, z_] := ((\[Mu]*J)/(4*Pi))*
Integrate[(Sin[\[Theta][x, y, z, a, b, c]]*
Cos[\[Alpha][x, y, z, a, b, c]])/(r[x, y, z, a, b,
c])^2, {a, -w/2, w/2}, {b, -\[Infinity], \[Infinity]}, {c, -t/2,
t/2}]
Bz[x_, y_, z_] := ((\[Mu]*J)/(4*Pi))*
Integrate[(Sin[\[Theta][x, y, z, a, b, c]]*
Sin[\[Alpha][x, y, z, a, b, c]])/(r[x, y, z, a, b,
c])^2, {a, -w/2, w/2}, {b, -\[Infinity], \[Infinity]}, {c, -t/2,
t/2}]
Bz[1, 1, 1] (* this gives neverending evaluation for example*)