Hey,
I want to use trigonometric Identities as a function. I am unable to use it as a function but I can use it for a constant domain. Is there anyway I can put in variable in the domain of function . I am using the following code
void setup() {
- // put your setup code here, to run once:*
Serial.begin(9600); - float i=0;*
}
void loop() {
- // put your main code here, to run repeatedly:*
float i;
*if (i>=3.142) * - {i = 0;*
- }*
float y = (-41(cos(i)));
Serial.println (y);
i = i +0.03142;
- }*