Integrating an analog signal using ARDUINO DUE

i have an 2 analog signal, and i want to minus between 2 signal(A0 and A1) then i want to do Integrating an analog, but it's doesn't work (I just started studying arduino)

Please you could show me how to deal with this problem, please? Thank a lot

float analogInPin = A0;
float analogInPin1 = A1;
float analogOutPin = DAC1;
float FeqIn, FeqIn1, FeqIn2, FeqIn3, FeqOut, w, Triarea, Recarea, area, n, y, t;

void setup()
{
Serial.begin(9600); // use the serial port

}

void loop()
{
FeqIn1 = analogRead(analogInPin);
FeqIn2 = analogRead(analogInPin1);
FeqIn3 = FeqIn1 - FeqIn2

// integration
area(1) = 0;
y(1) = 0;
for (n = 1; n = t; t++)
{
Triarea(n+1) = (0.5t(2))(FeqIn3(n+1) - FeqIn3(n));
Recarea(n+1) = t(2)*(FeqIn3(n));
area(n+1) = (Triarea(n+1) + Recarea(n+1)) + area(n);
}
}

_02.ino.ino (614 Bytes)

i have an 2 analog signal,

Yes, we know, you told us in the other two identical posts.

How hard is this to understand?
DO NOT CROSS-POST, CROSS-POSTING WASTES TIME.

float analogInPin = A0;

You have fractional pin numbers?

(BTW, did you see how I used code tags there?)

pin number 0 and 1

const byte analogInPin = A0;
const byte analogInPin1 = A1;
const byte analogOutPin = DAC1;
  area(1) = 0;

Did you mean area [0] = 0;?
But "area" is not an array.

 for (n = 1; n = t; t++)

What is the value of "t"?
How do you write a "for" loop?
Why would you want a "for" loop anyway? There's nothing to iterate over.

(there's also very little point in calculating the area of the triangle separately either)