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

Side by Side Diff: corelib/src/math.dart

Issue 10823048: deprecate the dart:core Math class (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698