BlueGrey
calm
Elegant
Català-Valencià – Catalan
中文 – Chinese (Simplified)
中文 – Chinese (Traditional)
Česky – Czech
Dansk – Danish
Nederlands – Dutch
English – English
Suomi – Finnish
Français – French
Deutsch – German
עברית – Hebrew
हिंदी – Hindi
Magyar – Hungarian
Bahasa Indonesia – Indonesian
Italiano – Italian
日本語 – Japanese
한국어 – Korean
Македонски – Macedonian
मराठी – Marathi
Norsk – Norwegian
Polski – Polish
Português – Portuguese
Português – Portuguese (Brazil)
Русский – Russian
Slovenčina – Slovak
Slovenščina – Slovenian
Español – Spanish
Svenska – Swedish
Türkçe – Turkish
Українська – Ukrainian
Oëzbekcha – Uzbek
Subversion Repositories
Kolibri OS
(root)
/
programs
/
develop
/
ktcc
/
trunk
/
source
/
tests
/
tests2
/
24_math_library.c
– Rev 6429
Rev
Blame
|
Last modification
|
View Log
|
Download
|
RSS feed
#define _ISOC99_SOURCE 1
#include <stdio.h>
#include <math.h>
int
main
(
)
{
printf
(
"%f
\n
"
,
sin
(
0.12
)
)
;
printf
(
"%f
\n
"
,
cos
(
0.12
)
)
;
printf
(
"%f
\n
"
,
tan
(
0.12
)
)
;
printf
(
"%f
\n
"
,
asin
(
0.12
)
)
;
printf
(
"%f
\n
"
,
acos
(
0.12
)
)
;
printf
(
"%f
\n
"
,
atan
(
0.12
)
)
;
printf
(
"%f
\n
"
,
sinh
(
0.12
)
)
;
printf
(
"%f
\n
"
,
cosh
(
0.12
)
)
;
printf
(
"%f
\n
"
,
tanh
(
0.12
)
)
;
printf
(
"%f
\n
"
,
exp
(
0.12
)
)
;
printf
(
"%f
\n
"
,
fabs
(
-
0.12
)
)
;
printf
(
"%f
\n
"
,
log
(
0.12
)
)
;
printf
(
"%f
\n
"
,
log10
(
0.12
)
)
;
printf
(
"%f
\n
"
,
pow
(
0.12
,
0.12
)
)
;
printf
(
"%f
\n
"
,
sqrt
(
0.12
)
)
;
printf
(
"%f
\n
"
,
round
(
12.34
)
)
;
printf
(
"%f
\n
"
,
ceil
(
12.34
)
)
;
printf
(
"%f
\n
"
,
floor
(
12.34
)
)
;
return
0
;
}
/* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/