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