int t=0; int omega=2; float dt = 0.1; void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: float out = sin(omega*dt*t); Serial.println(out+2); delay(100); t++; }