| 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 part of dart.math; | 5 // A part of the dart:math library. |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Base of the natural logarithms. | 8 * Base of the natural logarithms. |
| 9 * | 9 * |
| 10 * Typically written as "e". | 10 * Typically written as "e". |
| 11 */ | 11 */ |
| 12 const double E = 2.718281828459045; | 12 const double E = 2.718281828459045; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Natural logarithm of 10. | 15 * Natural logarithm of 10. |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 * Returns NaN if [x] is NaN. | 218 * Returns NaN if [x] is NaN. |
| 219 */ | 219 */ |
| 220 external double exp(num x); | 220 external double exp(num x); |
| 221 | 221 |
| 222 /** | 222 /** |
| 223 * Converts [x] to a double and returns the natural logarithm of the value. | 223 * Converts [x] to a double and returns the natural logarithm of the value. |
| 224 * Returns negative infinity if [x] is equal to zero. | 224 * Returns negative infinity if [x] is equal to zero. |
| 225 * Returns NaN if [x] is NaN or less than zero. | 225 * Returns NaN if [x] is NaN or less than zero. |
| 226 */ | 226 */ |
| 227 external double log(num x); | 227 external double log(num x); |
| OLD | NEW |