--- In [email protected], siva kumar <[EMAIL PROTECTED]> wrote:
>
> can you any body tell me how to write a sin or cos or
> exponential series in an easy way.
> please give me some sample programes.

#include <stdio.h>
#include <math.h>

int main( void)
{ double x = 2.0;

  printf( "sin( %f) = %f\n", x, sin( x));
  printf( "cos( %f) = %f\n", x, cos( x));

  return EXIT_SUCCESS;

} /* main() */


Haven't tried this code myself, but it should compile and run (almost)
out of the box.

What's the reason for your question? Didn't you know about <math.h>
and sin() and cos() functions?

Regards,
Nico

Reply via email to