AnsweredAssumed Answered

how to use the sin function

Question asked by Subbaraju P on Mar 20, 2007
Latest reply on Mar 21, 2007 by CrasyCat
hi
i want to use the sine and cosine functions for my project implementaion. as i am new to codewarrior can any one help me in using the sin functions and printf statements i am working on m68hc12dp256 evaluation board.
i tried the following code
# include
void main(void){
int i=1; double y[10];
for(i=1;i10;i++){
y[i]=double (sin (double i));
}
}
if i try to compile it, giving errors saying error: c2450 expected .* + - etc., (expected 'double*' instead of 'double'); what it is meaning
secondly
i am not able to implement the printf statement?

thanking you in advance.

quick response is required.

regards
Subbaraju P.

Outcomes