Subsections


Trigonometric function

\epsfig{file=TrigFun.eps,width=90.00pt}

Library

Non_linear

Description

The Trigonometric Function block performs numerous common trigonometric functions. You can select one of these functions from the Function list: sin, cos, tan, asin, acos, atan, atan2, sinh, cosh, and tanh. The block output is the result of the operation of the function on the input or inputs.

Dialog Box

Choose among sin, cos, tan, asin
Function sin

Default properties

Interfacing function

scilab/macros/scicos_blocks/nonlinear/TrigFun.sci

Computational function (type 4)


#include "scicos_block.h"
#include <math.h>

void sin_blk(scicos_block *block,int flag)
{
  int j;
  if(flag==1){
    for (j=0;j<block->insz[0];j++) {
      block->outptr[0][j]=sin(block->inptr[0][j]);
    }
  }
}

Ramine Nikoukhah 2004-06-22