ext3c.c File Reference

#include <math.h>
#include <string.h>

Include dependency graph for ext3c.c:

Go to the source code of this file.

Functions

int ext3c (char *ch, int *n, double *a, double *b, double *c)


Function Documentation

int ext3c ( char *  ch,
int n,
double *  a,
double *  b,
double *  c 
)

Definition at line 18 of file ext3c.c.

00019 {
00020   static int k;
00021   if (strcmp(ch, "yes") == 0) 
00022     {
00023       for (k = 0; k < *n; ++k) 
00024         c[k] = sin(a[k]) + cos(b[k]);
00025     } 
00026   else 
00027     {
00028       for (k = 0; k < *n; ++k) 
00029         c[k] = a[k] + b[k];
00030     }
00031   return(0);
00032 } 


Generated on Sun Mar 4 16:07:44 2007 for Scilab [trunk] by  doxygen 1.5.1