clear; clc;

asset1 = [150, 0, 0, -100];
x1 = roots(asset1);
r1 = 1 / x1(3) - 1

asset2 = [150, -15, 15, -100];
x2 = roots(asset2);
r2 = 1 / x2(1) - 1;