summaryrefslogtreecommitdiff
path: root/src/elementaryFunctions/sin/csins.c
blob: 2461fb4236b14601a4d419483139d599368055d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
**  -*- C -*-
**
** csins.c
** Made by  Bruno JOFRET <bruno.jofret@inria.fr>
**
** Started on  Fri Dec  8 12:04:39 2006 jofret
** Last update Tue Feb  6 15:56:55 2007 jofret
**
** Copyright INRIA 2006
*/

#include "floatComplex.h"

float	ssins(float);
float	scoss(float);
float	ssinhs(float);
float	scoshs(float);

floatComplex csins(floatComplex z) {
  float real = creal(z);
  float imag = cimag(z);

  return(FloatComplex(ssins(real) * scoshs(imag), scoss(real) * ssinhs(imag)));
}