summaryrefslogtreecommitdiff
path: root/src/library/scala/math/package.scala
Commit message (Collapse)AuthorAgeFilesLines
* Group math package functionsJanek Bogucki2016-07-061-64/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | Groups - Mathematical Constants - Minimum and Maximum - Rounding - Exponential and Logarithmic - Trigonometric - Angular Measurement Conversion - Hyperbolic - Absolute Values - Signs - Root Extraction - Polar Coordindates - Unit of Least Precision Other changes, - Dropped use of `double` for `Double` in all cases - Grouped some methods in the source - Extended notes about exception to method forwarding - Minor method documentation enhancements IEEERemainder is in the Rounding group since it is related to rounding and did not justify a new group.
* Lower-case spelling of @deprecated messagesSimon Ochsenreither2016-05-281-4/+4
|
* Merge commit 'bf599bc' into merge/2.11.x-to-2.12.x-20160203Jason Zaugg2016-02-031-0/+12
|\ | | | | | | | | | | | | | | | | Conflicts: src/compiler/scala/tools/nsc/backend/opt/ConstantOptimization.scala src/compiler/scala/tools/nsc/transform/Constructors.scala src/compiler/scala/tools/nsc/typechecker/Contexts.scala src/scaladoc/scala/tools/nsc/doc/html/page/Template.scala src/scaladoc/scala/tools/nsc/doc/html/resource/lib/jquery.layout.js
| * change phrasing around eulers number for `log(x)`martijnhoekstra2015-12-111-3/+1
| |
| * add doc for log, sqrtmartijnhoekstra2015-10-301-0/+14
| | | | | | | | It's useful to know that log is the natural logarithm, not 10log or 2log or so. Also did sqrt "while I was at it"
* | SI-6778 scala.math.random should have parenthesisDenton Cockburn2015-01-101-1/+1
|/
* SI-3235 math.round() returns wrong results for Int and LongRex Kerr2014-02-251-3/+13
| | | | | | | | Minimal fix for SI-3235. This minimal fix includes deprecation messages to aid detection of probable errors. Test verifies behavior: the correct values are returned, and deprecation messages are emitted.
* Finalized math.E and math.Pi.Paul Phillips2013-05-311-2/+2
| | | | | | | Without this treatment these constants will not be inlined or folded, bloating bytecode and inhibiting optimization. Marking them @inline doesn't have any additional effect, but I did it to futurize them in light of SI-7542.
* Make all numeric coercions explicit.Paul Phillips2013-05-271-13/+19
| | | | | | | | | | | | | Optimistically, this is preparation for a day when we don't let numeric types drift with the winds. Even without the optimism it's a good idea. It flushed out an undocumented change in the math package object relative to the methods being forwarded (a type is widened from what is returned in java) so I documented the intentionality of it. Managing type coercions manually is a bit tedious, no doubt, but it's not tedious enough to warrant abandoning type safety just because java did it.
* Brings all copyrights (in comments) up-to-date, from 2011/12 to 2013Heather Miller2012-11-021-1/+1
|
* Changes scala.math.signum to return negative zeros.Dominik Gruntz2012-05-081-14/+3
|
* Delegate to Java's implementation of signum for Long and Int.Ismael Juma2011-12-031-9/+3
| | | | | | | | The Java implementation is faster as it doesn't have branches. java.lang.Math includes implementations of signum for Double and Float, but I didn't change the ones in scala.math because there is a difference on how negative zero is handled.
* Removing the code which has been deprecated sin...Paul Phillips2011-08-151-1/+124
| | | | | | | Removing the code which has been deprecated since 2.8.0. Contributed by Simon Ochsenreither, although deleting code is such fun one hesitates to call it a contribution. Still, we will. Closes SI-4860, no review.
* Adds documentation to the scala.math package ob...Heather Miller2011-08-091-10/+48
| | | | | | Adds documentation to the scala.math package object. Contributed by Christian Krause. No review.
* 3rd round of clean ups (see r25285, r25292)michelou2011-07-151-4/+4
|
* Updated copyright notices to 2011Antonio Cunei2011-01-201-1/+1
|
* Took advantage of package object fix to factor ...Paul Phillips2009-12-121-128/+2
| | | | | | | Took advantage of package object fix to factor the duplicated code out of scala.Math and scala.math.`package`. This required a new starr which exposes inherited package object members (starr is based on r20110.)
* Updated copyright notices to 2010Antonio Cunei2009-12-071-1/+1
|
* Partitioned scala.Math and scala.math a little ...Paul Phillips2009-11-231-63/+11
| | | | | | | Partitioned scala.Math and scala.math a little bit. ALL_CAP aliases are deprecated and only in Math. Formerly unavailable members of java.lang.Math which were added in 1.5 are now available in scala.math.
* More world-shaking deprecation work.Paul Phillips2009-11-201-12/+21
| | | | | | | object, updating some @deprecated messages to give realistic alternatives, properly resolving the semantic mismatch between List.-- and diff, its once-recommended but inequivalent alternative.
* Contents of scala.Math moved into scala.math pa...Paul Phillips2009-11-171-0/+199
Contents of scala.Math moved into scala.math package object, and scala.Math deprecated. Also a couple janitorial cleanups.