I want to calculate the value of a function for some particular values of the variable and put it in table. This is my code:
ClearAll["Global`*"]
M = 511000;
z = 1;
\[Alpha] = 1/137;
b[T_?NumericQ] := Sqrt[(T (T + 2 M))/(T + M)^2];
i[T_?NumericQ] := NIntegrate[ 1/w ((2 M T + T^2)/(M + T)^2 + (2 M (T - w) + (T - w)^2)/(M + T - w)^2 + 2 ((-M^2 + T (T - w))/ M^2)) (((4 + b[T] + b[T]^2) z^2 \[Alpha])/(12 (1 + b[T]) \[Pi])), {w, 4.3, 100}];
Table[{T, i[T]}, {T, {10^6, 5*10^6, 10^7, 5*10^7, 10^8}}] // TableForm // ScientificForm
It works, but I get the ScientificForm
only on the second column: how can I make Mathematica to use ScientificForm
also on the first column?
Table[{ScientificForm@T, i[T]}, {T, {10^6, 5*10^6, 10^7, 5*10^7, 10^8}}];
? (btw, usingi
for function name is not very good choice) $\endgroup$Table[{N[T], i[T]}, ...]
. $\endgroup$