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

Side by Side Diff: sdk/lib/math/math.dart

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 years, 9 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
« no previous file with comments | « sdk/lib/math/jenkins_smi_hash.dart ('k') | sdk/lib/math/point.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Mathematical constants and functions, plus a random number generator. 6 * Mathematical constants and functions, plus a random number generator.
7 * 7 *
8 * To use this library in your code: 8 * To use this library in your code:
9 * 9 *
10 * import 'dart:math'; 10 * import 'dart:math';
11 */ 11 */
12 library dart.math; 12 library dart.math;
13 13
14 part "jenkins_smi_hash.dart"; 14 part "jenkins_smi_hash.dart";
15 part "point.dart"; 15 part "point.dart";
16 part "random.dart"; 16 part "random.dart";
17 part "rectangle.dart"; 17 part "rectangle.dart";
18 18
19 /** 19 /**
20 * Base of the natural logarithms. 20 * Base of the natural logarithms.
21 * 21 *
22 * Typically written as "e". 22 * Typically written as "e".
23 */ 23 */
24 const double E = 2.718281828459045; 24 const double E = 2.718281828459045;
25 25
26 /** 26 /**
27 * Natural logarithm of 10. 27 * Natural logarithm of 10.
28 */ 28 */
29 const double LN10 = 2.302585092994046; 29 const double LN10 = 2.302585092994046;
30 30
31 /** 31 /**
32 * Natural logarithm of 2. 32 * Natural logarithm of 2.
33 */ 33 */
34 const double LN2 = 0.6931471805599453; 34 const double LN2 = 0.6931471805599453;
35 35
36 /** 36 /**
37 * Base-2 logarithm of [E]. 37 * Base-2 logarithm of [E].
38 */ 38 */
39 const double LOG2E = 1.4426950408889634; 39 const double LOG2E = 1.4426950408889634;
40 40
41 /** 41 /**
42 * Base-10 logarithm of [E]. 42 * Base-10 logarithm of [E].
43 */ 43 */
44 const double LOG10E = 0.4342944819032518; 44 const double LOG10E = 0.4342944819032518;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 */ 252 */
253 external double exp(num x); 253 external double exp(num x);
254 254
255 /** 255 /**
256 * Converts [x] to a double and returns the natural logarithm of the value. 256 * Converts [x] to a double and returns the natural logarithm of the value.
257 * 257 *
258 * Returns negative infinity if [x] is equal to zero. 258 * Returns negative infinity if [x] is equal to zero.
259 * Returns NaN if [x] is NaN or less than zero. 259 * Returns NaN if [x] is NaN or less than zero.
260 */ 260 */
261 external double log(num x); 261 external double log(num x);
OLDNEW
« no previous file with comments | « sdk/lib/math/jenkins_smi_hash.dart ('k') | sdk/lib/math/point.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698