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

Side by Side Diff: sdk/lib/math/math.dart

Issue 1231933007: make one-line docs for math (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« 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) 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"; 10 part "jenkins_smi_hash.dart";
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 /** 213 /**
214 * Converts [x] to a double and returns the arc cosine of the value. 214 * Converts [x] to a double and returns the arc cosine of the value.
215 * 215 *
216 * Returns a value in the range -PI..PI, or NaN if [x] is outside 216 * Returns a value in the range -PI..PI, or NaN if [x] is outside
217 * the range -1..1. 217 * the range -1..1.
218 */ 218 */
219 external double acos(num x); 219 external double acos(num x);
220 220
221 /** 221 /**
222 * Converts [x] to a double and returns the arc sine of the value. 222 * Converts [x] to a double and returns the arc sine of the value.
223 *
223 * Returns a value in the range -PI..PI, or NaN if [x] is outside 224 * Returns a value in the range -PI..PI, or NaN if [x] is outside
224 * the range -1..1. 225 * the range -1..1.
225 */ 226 */
226 external double asin(num x); 227 external double asin(num x);
227 228
228 /** 229 /**
229 * Converts [x] to a dobule and returns the arc tangent of the vlaue. 230 * Converts [x] to a dobule and returns the arc tangent of the value.
231 *
230 * Returns a value in the range -PI/2..PI/2, or NaN if [x] is NaN. 232 * Returns a value in the range -PI/2..PI/2, or NaN if [x] is NaN.
231 */ 233 */
232 external double atan(num x); 234 external double atan(num x);
233 235
234 /** 236 /**
235 * Converts [x] to a double and returns the positive square root of the value. 237 * Converts [x] to a double and returns the positive square root of the value.
236 * 238 *
237 * Returns -0.0 if [x] is -0.0, and NaN if [x] is otherwise negative or NaN. 239 * Returns -0.0 if [x] is -0.0, and NaN if [x] is otherwise negative or NaN.
238 */ 240 */
239 external double sqrt(num x); 241 external double sqrt(num x);
240 242
241 /** 243 /**
242 * Converts [x] to a double and returns the natural exponent, [E], 244 * Converts [x] to a double and returns the natural exponent, [E],
243 * to the power [x]. 245 * to the power [x].
246 *
244 * Returns NaN if [x] is NaN. 247 * Returns NaN if [x] is NaN.
245 */ 248 */
246 external double exp(num x); 249 external double exp(num x);
247 250
248 /** 251 /**
249 * Converts [x] to a double and returns the natural logarithm of the value. 252 * Converts [x] to a double and returns the natural logarithm of the value.
253 *
250 * Returns negative infinity if [x] is equal to zero. 254 * Returns negative infinity if [x] is equal to zero.
251 * Returns NaN if [x] is NaN or less than zero. 255 * Returns NaN if [x] is NaN or less than zero.
252 */ 256 */
253 external double log(num x); 257 external double log(num x);
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