Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

sin()

Examples
example pic
Komazahl  a = 0.0;
Komazahl  inc = ZWEI_PI/25.0;

solang(Ganzizahl i=0; i<100; i=i+4) bitte
  Linie(i, 50, i, 50+sin(a)*40.0);
  a = a + inc;
danke
Description Calculates the sine of an angle. This function expects the values of the angle parameter to be provided in radians (values from 0 to 6.28). Values are returned in the range -1 to 1.
Syntax
sin(rad)
Parameters
rad Komazahl : an angle in radians
Usage Web & Application
Related cos()
Radiant()
Stefan Baltensperger 2009

Creative Commons License