Human: What is the best way to determine which type of a rock is igneous, sedimentary, or metamorphic? Assistant: 
The best way to determine which type of rock is igneous, sedimentary, or metamorphic is to analyze the mineral composition and texture. Igneous rocks are formed when magma cools quickly in contact with air, forming crystals that can be seen with the naked eye. Sedimentary rocks are formed by the accumulation of particles such as sand and mud, while metamorphic rocks have been changed by heat and pressure.