• + 0 comments
    function sides(literals, ...expressions) {
        let square=expressions[1]*expressions[1],air=16*expressions[0];
        let s1=(expressions[1]+Math.sqrt(square-air))/4;
        let s2=(expressions[1]-Math.sqrt(square-air))/4;
        
        let s=[s1,s2];
        s=s.sort();
        return s;
    }