11.07.2015 Views

Analisa Kinerja Sistem - Blog Sivitas STIKOM Surabaya

Analisa Kinerja Sistem - Blog Sivitas STIKOM Surabaya

Analisa Kinerja Sistem - Blog Sivitas STIKOM Surabaya

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3.Workload* these math routines without express written permission from Westinghous* Electric Corporation, c/o Jon Squire, P.O. Box 746 MS1615, Baltimore,* MD 21203. */const float pi_2 = 1.57079632679489661;static float sin (float x) {const float c1 = 1.57079631847;const float c3 = -0.64596371106;const float c5 = 0.07968967928;const float c7 = -0.00467376557;const float c9 = 0.00015148419;float x_norm;float x_int;float x_2;float y;x_norm = x / pi_2;if (fabs (x_norm) > 4.0){x_int = (float) ((int) (x_norm / 4.0));x_norm = x_norm - 4.0 * x_int;}if (x_norm > 2.0)x_norm = 2.0 - x_norm;else if (x_norm < -2.0)x_norm = -2.0 - x_norm;37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!