clc
clear

h = 100;
v0 = 50;
g = 9.81;

t = @(h,v0,g) [(v0 + sqrt(v0^2 - 2*g*h))/g, (v0 - sqrt(v0^2 - 2*g*h))/g];
u = @(h,v0,g) [(v0 + h + g) , (v0 +h + sqrt(v0))] ;

answers = t(h,v0,g)
answers =u(h,v0,g)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: