OLD | NEW |
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 library dart.math; | 8 library dart.math; |
9 | 9 |
| 10 part "jenkins_smi_hash.dart"; |
| 11 part "point.dart"; |
10 part "random.dart"; | 12 part "random.dart"; |
| 13 part "rectangle.dart"; |
11 | 14 |
12 /** | 15 /** |
13 * Base of the natural logarithms. | 16 * Base of the natural logarithms. |
14 * | 17 * |
15 * Typically written as "e". | 18 * Typically written as "e". |
16 */ | 19 */ |
17 const double E = 2.718281828459045; | 20 const double E = 2.718281828459045; |
18 | 21 |
19 /** | 22 /** |
20 * Natural logarithm of 10. | 23 * Natural logarithm of 10. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 * Returns NaN if [x] is NaN. | 244 * Returns NaN if [x] is NaN. |
242 */ | 245 */ |
243 external double exp(num x); | 246 external double exp(num x); |
244 | 247 |
245 /** | 248 /** |
246 * Converts [x] to a double and returns the natural logarithm of the value. | 249 * Converts [x] to a double and returns the natural logarithm of the value. |
247 * Returns negative infinity if [x] is equal to zero. | 250 * Returns negative infinity if [x] is equal to zero. |
248 * Returns NaN if [x] is NaN or less than zero. | 251 * Returns NaN if [x] is NaN or less than zero. |
249 */ | 252 */ |
250 external double log(num x); | 253 external double log(num x); |
OLD | NEW |