mkMat = () => {
const c = Math.sqrt(Ipt.ResourceA ** 2 + Ipt.ResourceB ** 2);
const vectors = [
[-math.random(0.2, 0.8), Ipt.ResourceA / c],
[math.random(0.2, 0.8), Ipt.ResourceB / c]
];
const values = [
[(1 / Ipt.GrowthRate) * math.random(0.2, 0.8), 0],
[0, 1 / Ipt.GrowthRate]
];
const inv = math.inv(vectors);
const mat = math.multiply(math.multiply(vectors, values), inv);
const mul = math.multiply(vectors, math.transpose(vectors));
return { vectors, inv, mul, mat };
}