home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource3
/
161_01
/
mathlib.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1985-08-30
|
338 b
|
14 lines
#include "timer1.h"
#include <math.h>
double x=.5, y=.5, z=.25;
DO_FEXPR("atan(x)") atan(x) OD
DO_FEXPR("cos(x)") cos(x) OD
DO_FEXPR("exp(x)") exp(x) OD
DO_FEXPR("log(x)") log(x) OD
DO_FEXPR("log10(x)") log10(x) OD
DO_FEXPR("pow(x, y)") pow(x, y) OD
DO_FEXPR("sin(x)") sin(x) OD
DO_FEXPR("sqrt(x)") sqrt(x) OD
}