| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Dart core library. | 5 // Dart core library. |
| 6 | 6 |
| 7 /** |
| 8 * *Note:* This class is **deprecated**, and will be removed soon. |
| 9 * Please use the [dart:math] library instead. |
| 10 */ |
| 7 class Math { | 11 class Math { |
| 8 /** | 12 /** |
| 9 * Base of the natural logarithms. | 13 * Base of the natural logarithms. |
| 10 */ | 14 */ |
| 11 static final double E = 2.718281828459045; | 15 static final double E = 2.718281828459045; |
| 12 | 16 |
| 13 /** | 17 /** |
| 14 * Natural logarithm of 10. | 18 * Natural logarithm of 10. |
| 15 */ | 19 */ |
| 16 static final double LN10 = 2.302585092994046; | 20 static final double LN10 = 2.302585092994046; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 static double sin(num x) => MathNatives.sin(x); | 155 static double sin(num x) => MathNatives.sin(x); |
| 152 static double cos(num x) => MathNatives.cos(x); | 156 static double cos(num x) => MathNatives.cos(x); |
| 153 static double tan(num x) => MathNatives.tan(x); | 157 static double tan(num x) => MathNatives.tan(x); |
| 154 static double acos(num x) => MathNatives.acos(x); | 158 static double acos(num x) => MathNatives.acos(x); |
| 155 static double asin(num x) => MathNatives.asin(x); | 159 static double asin(num x) => MathNatives.asin(x); |
| 156 static double atan(num x) => MathNatives.atan(x); | 160 static double atan(num x) => MathNatives.atan(x); |
| 157 static double sqrt(num x) => MathNatives.sqrt(x); | 161 static double sqrt(num x) => MathNatives.sqrt(x); |
| 158 static double exp(num x) => MathNatives.exp(x); | 162 static double exp(num x) => MathNatives.exp(x); |
| 159 static double log(num x) => MathNatives.log(x); | 163 static double log(num x) => MathNatives.log(x); |
| 160 } | 164 } |
| OLD | NEW |