LEARN: Identifying Linear and Non-Linear Equations