Image Ref: My Image
λ=0.5 | λ=1 | λ=1.5 | λ=2 | λ=2.5 | λ=3 | |
---|---|---|---|---|---|---|
x=0 | 0.6065 | 0.3679 | 0.2231 | 0.1353 | 0.0821 | 0.0498 |
x=1 | 0.3033 | 0.3679 | 0.3347 | 0.2706 | 0.2053 | 0.1494 |
x=2 | 0.0758 | 0.1840 | 0.2510 | 0.2706 | 0.2566 | 0.2241 |
x=3 | 0.0126 | 0.0613 | 0.1255 | 0.1804 | 0.2138 | 0.2241 |
x=4 | 0.0016 | 0.0153 | 0.0471 | 0.0902 | 0.1336 | 0.1681 |
x=5 | 0.0002 | 0.0031 | 0.0141 | 0.0361 | 0.0668 | 0.1009 |
x=6 | 0.0000 | 0.0005 | 0.0035 | 0.0120 | 0.0278 | 0.0505 |
x=7 | 0.0000 | 0.0001 | 0.0008 | 0.0034 | 0.0099 | 0.0216 |
x=8 | 0.0000 | 0.0000 | 0.0002 | 0.0008 | 0.0031 | 0.0081 |
686 chars ------ size "9x6"
function makeRows()
{
const p = [];
const L = [0.5, 1, 1.5, 2, 2.5, 3];
let yatay = "<th></th>";
for (let j = 0.5; j <= L.length/2; j +=0.5)
{
yatay += "<th>" + "λ=" + (j) + "</th>";
}
for (let a = 0; a < L.length; a++)
{
p[a] = (Math.exp(-1 * (L[a]))).toFixed(4);
}
let text = "<tr>" + yatay + "</tr>";
for (let a = 0; a <= 8; a++)
{
yatay = "<th>" + "x=" + (a) + "</th>";
for (let c = 1; c <= p.length; c++)
{
yatay += "<td>" + p[c - 1] + "</td>";
p[c - 1] = ((L[c - 1] * p[c - 1]) / (a + 1)).toFixed(4);
}
text += "<tr>" + yatay + "</tr>";
}
tablo.innerHTML = text;
out.innerText = t;
}