Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

US Job listings




   Misc

   Amazon

   Links

    


Sin function example
 

 

 

Description

This simply uses the sin() function . The sin function returns an angles sine which is specified in radians.

Code

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

int main()
{
double radians;
printf("sin function example.\n");
for(radians = 0;radians < 2.0; radians += 0.1)
printf("The sine of %f is %f\n", radians , sin(radians));
return 0;
}

Information

tested using LCC Win 32

 

 

 

 

Download

sin.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
lowercase text(CSS)
Browser version(PHP)
get the host name(ASP.net)
displays the browser info(Javascript)
Read part of a file(ASP)
Count the occurences of a SubSTring(VB.net)
word count example in php(php)
Display when a page was last modified(PHP)

    




Copyright © 2003 by programmershelp.co.uk