• + 0 comments
    function sides(literals, ...expressions) {
        const [area, perimeter] = expressions;
        const raizPerimetroArea = Math.sqrt(perimeter ** 2 - 16 * area);
    
        const s1 = (perimeter + raizPerimetroArea) / 4;
        const s2 = (perimeter - raizPerimetroArea) / 4;
        
        const result = [s1, s2].sort();
        
        return result;
    }