Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (762) Games in Android Showcase (229) games submitted by our members Games in WIP (847) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
JavaGaming.org - Pastebin

Author: Roquen (posted 2013-06-11 22:12:32, viewed 529 times)

 1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35   36   37   38   39   40   41   42   43 ```// NOTHING USABLE HERE - SEE: http://www.java-gaming.org/topics/are-sin-cos-lookup-tables-still-relevant-today-with-regards-to-performance/29853/view.html private static final float bad_sin_0(float x) { float x2 = x*x; return x*(1+x2*(-(1/6.f)+x2*(1/120.f+x2*(-(1/5040.f)+x2*(1/362880.f+x2*(-(1/39916800.f)+x2*(1/6227020800.f+x2*(-(1/1307674368000.f)+x2*(1/355687428096000.f))))))))); } private static final float bad_sin_1(float x) { float x2 = x*x; return x*((1+x2*(-1.66666666663e-1f+x2*(8.33333332632e-3f+x2*(-1.98412692677e-4f+x2*(2.75572947609e-6f+x2*(-2.50515055201e-8f+(1.60501169408e-10f))*x2)))))); } private static final float bad_sin_2(float x) { float x2 = x*x; return x*(.9999997f+x2*(-1.666653e-1f+x2*(8.332151e-3f+x2*(-1.980124e-4f+x2*(2.691285e-6f-(2.002991e-8f))*x2)))); } private static final float bad_sin_3(float x) { float x2 = x*x; return x*(.9999827f+x2*(-.1666134f+x2*(8.302645e-3f+x2*(-1.916335e-4f+(2.098022e-6f)*x2)))); } private static final float bad_sin_4(float x) { float x2 = x*x; return x*(.9976653f+x2*(-.1648102f+x2*(7.831693e-3f-(1.394344e-4f)*x2))); } private static final float bad_sin_5(float x) { float x2 = x*x; return x*(.9806062f+x2*(-.1500797e-1f+(5.139366e-3f)*x2)); } private static final float bad_sin_6(float x) { float x2 = x*x; return x*(.6865046f-(6.955746e-2f)*x2); }```

Special syntax:
• To highlight a line (yellow background), prefix it with '@@'
• To indicate that a line should be removed (red background), prefix it with '-'
• To indicate that a line should be added (green background), prefix it with '+'
• To post multiple snippets, seperate them by '~~~~'
EOF
 EgonOlsen (364 views) 2018-06-10 19:43:48 EgonOlsen (364 views) 2018-06-10 19:43:44 EgonOlsen (304 views) 2018-06-10 19:43:20 DesertCoockie (540 views) 2018-05-13 18:23:11 nelsongames (871 views) 2018-04-24 18:15:36 nelsongames (854 views) 2018-04-24 18:14:32 ivj94 (1306 views) 2018-03-24 14:47:39 ivj94 (426 views) 2018-03-24 14:46:31 ivj94 (1089 views) 2018-03-24 14:43:53 Solater (445 views) 2018-03-17 05:04:08
 Java Gaming Resourcesby philfrei2017-12-05 19:38:37Java Gaming Resourcesby philfrei2017-12-05 19:37:39Java Gaming Resourcesby philfrei2017-12-05 19:36:10Java Gaming Resourcesby philfrei2017-12-05 19:33:10List of Learning Resourcesby elect2017-03-13 14:05:44List of Learning Resourcesby elect2017-03-13 14:04:45SF/X Librariesby philfrei2017-03-02 08:45:19SF/X Librariesby philfrei2017-03-02 08:44:05
 java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org