Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript Site
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
File size function(PHP)
Launch format dialog box(VB)
text spacing(CSS)
text box scroller(Javascript)
CSV stock quotes(PHP)
Create a share(VB)
display the user agent(ASP.net)
megabyte to kilobyte conversion(Javascript)

    




Copyright © 2003 by programmershelp.co.uk