i try to write code for calculate rms
but i have problem in my code.
how can i solve my problem?
const unsigned int numReadings = 100;
unsigned int analogVals[numReadings][1];
float val2;
float sum_squared_voltage;
float mean_square_voltage;
float root_mean_square_voltage;
void setup()
{
Serial.begin(2400);
}
void loop()
{
//take numReadings # of readings and store into array
for (unsigned int i=0; i<numReadings; i++)
{
analogVals*[1] = analogRead(A0);*

delay(1000); //wait 1 sec*

}*
analogVals[1]=analogVals_[1]analogVals[1];_
sum_squared_voltage += analogVals[1];*
mean_square_voltage = sum_squared_voltage / number_of_samples;
root_mean_square_voltage = sqrt(mean_square_voltage);
* Serial.println(root_mean_square_voltage);*
}