Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: test/mjsunit/es6/math-hyperbolic.js

Issue 526073002: Fix typo in math-hyperbolic test. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 assertTrue(isNaN(Math.acosh(x))); 100 assertTrue(isNaN(Math.acosh(x)));
101 }); 101 });
102 102
103 103
104 // Some random samples. 104 // Some random samples.
105 assertEqualsDelta(74.20321057778875, Math.sinh(5), 1E-12); 105 assertEqualsDelta(74.20321057778875, Math.sinh(5), 1E-12);
106 assertEqualsDelta(-74.20321057778875, Math.sinh(-5), 1E-12); 106 assertEqualsDelta(-74.20321057778875, Math.sinh(-5), 1E-12);
107 107
108 assertEqualsDelta(1.1276259652063807, Math.cosh(0.5), 1E-12); 108 assertEqualsDelta(1.1276259652063807, Math.cosh(0.5), 1E-12);
109 assertEqualsDelta(74.20994852478785, Math.cosh(5), 1E-12); 109 assertEqualsDelta(74.20994852478785, Math.cosh(5), 1E-12);
110 assertEqualsDelta1.1276259652063807, Math.cosh(-0.5), 1E-12); 110 assertEqualsDelta(1.1276259652063807, Math.cosh(-0.5), 1E-12);
111 assertEqualsDelta(74.20994852478785, Math.cosh(-5), 1E-12); 111 assertEqualsDelta(74.20994852478785, Math.cosh(-5), 1E-12);
112 112
113 assertEqualsDelta(0.4621171572600, Math.tanh(0.5), 1E-12); 113 assertEqualsDelta(0.4621171572600, Math.tanh(0.5), 1E-12);
114 assertEqualsDelta(0.9999092042625, Math.tanh(5), 1E-12); 114 assertEqualsDelta(0.9999092042625, Math.tanh(5), 1E-12);
115 assertEqualsDelta(-0.4621171572600, Math.tanh(-0.5), 1E-12); 115 assertEqualsDelta(-0.4621171572600, Math.tanh(-0.5), 1E-12);
116 assertEqualsDelta(-0.9999092042625, Math.tanh(-5), 1E-12); 116 assertEqualsDelta(-0.9999092042625, Math.tanh(-5), 1E-12);
117 117
118 assertEqualsDelta(0.4812118250596, Math.asinh(0.5), 1E-12); 118 assertEqualsDelta(0.4812118250596, Math.asinh(0.5), 1E-12);
119 assertEqualsDelta(2.3124383412727, Math.asinh(5), 1E-12); 119 assertEqualsDelta(2.3124383412727, Math.asinh(5), 1E-12);
120 assertEqualsDelta(-0.4812118250596, Math.asinh(-0.5), 1E-12); 120 assertEqualsDelta(-0.4812118250596, Math.asinh(-0.5), 1E-12);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 assertEquals(512.00048828125, Math.cosh(-10*Math.LN2)); 179 assertEquals(512.00048828125, Math.cosh(-10*Math.LN2));
180 // Case 22 <= |x| < log(maxdouble) 180 // Case 22 <= |x| < log(maxdouble)
181 assertEquals(2.1474836479999983e9, Math.cosh(32*Math.LN2)); 181 assertEquals(2.1474836479999983e9, Math.cosh(32*Math.LN2));
182 assertEquals(2.1474836479999983e9, Math.cosh(-32*Math.LN2)); 182 assertEquals(2.1474836479999983e9, Math.cosh(-32*Math.LN2));
183 // Case log(maxdouble) <= |x| <= overflowthreshold 183 // Case log(maxdouble) <= |x| <= overflowthreshold
184 assertEquals(1.7976931348621744e308, Math.cosh(710.4758600739439)); 184 assertEquals(1.7976931348621744e308, Math.cosh(710.4758600739439));
185 assertEquals(1.7976931348621744e308, Math.cosh(-710.4758600739439)); 185 assertEquals(1.7976931348621744e308, Math.cosh(-710.4758600739439));
186 // Overflow. 186 // Overflow.
187 assertEquals(Infinity, Math.cosh(710.475860073944)); 187 assertEquals(Infinity, Math.cosh(710.475860073944));
188 assertEquals(Infinity, Math.cosh(-710.475860073944)); 188 assertEquals(Infinity, Math.cosh(-710.475860073944));
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698