If the area of a triangle with base x is equal to the area of a square with side x, then the altitude of the triangle is-