React Array State Variable Formulas Trigonometricas