Sebastien Pouliot
64b8e0c063
[System.Numerics] Fix unit test to succeed on different culture (XI runs tests them on several cultures)
2014-09-19 16:30:16 -04:00
Marek Safar
14f56f6aea
[system.numerics] Unify handling of default ctor and zero. Fixes #22591
2014-09-08 14:50:39 +02:00
Rodrigo Kumpera
aa217360ce
[System.Numerics] Contract the values array when decoding an array with a negative number and a trailer that evals to zero. Fixes #20456 .
2014-07-08 20:02:19 -04:00
Miguel de Icaza
60fa2525fb
[build] the csproj files can now do a full class libraries build
2014-05-25 00:47:09 -04:00
Miguel de Icaza
3599b97b57
[build] Fresh new csproj files based on the updated build system.
2014-05-23 17:15:53 -04:00
Joel Martinez
e9068ebf5b
[docs] documentation import for 'returns' elements.
2014-05-12 14:52:53 -04:00
Joel Martinez
d4fcdb95b4
[docs] namespace documentation import.
2014-05-12 14:52:47 -04:00
Joel Martinez
6999270099
[docs] Import of Microsoft BCL Documentation.
...
The documentation is creative commons licensed.
2014-04-27 21:33:01 -04:00
Miguel de Icaza
d79280674b
Refreshed the CSProj files to use the new output build directory
2014-04-18 18:15:35 -04:00
Marius Ungureanu
2f4416a462
[BigInteger] Fix some tests typos.
2014-03-25 13:12:40 +02:00
Joel Martinez
8ca91971eb
docupdate: System.Numerics documentation update
2014-03-10 15:14:03 -04:00
theraot
df50c16760
[Fix] BigInteger: reimplemented cast to single (float)
...
- The new implementation casts to double and then to float.
2014-03-04 16:19:19 -05:00
theraot
f2dd91de16
[Fix] BigInteger: improved cast to double
...
- Added overloads for PopulationCount and LeadingZeroCount that take ulong.
- Added helper method BuildDouble that constructs a double by sign, mantissa
and exponent. This method truncates the mantissa, thus may differ in
rounding to Math.Pow.
- The new implementation avoids Math.Pow by using BuildDouble.
- Passing all recently added tests.
2014-03-04 13:59:11 -05:00
theraot
7d23576855
BigInteger: more test cases for cast to double
2014-03-04 13:43:58 -05:00
theraot
f277bca903
BigInteger: added tests for double conversion
2014-03-04 11:28:34 -05:00
theraot
1868150cbe
[Performance] BigInteger: cast to double and float
...
- The new implementation converts directly to double or float.
2014-03-04 11:14:01 -05:00
theraot
697c793e47
BigIngeter: new LeadingZeroCount helper method
...
- The new helper method LeadingZeroCount returns the number of bits
that are set to 0 at the start of an uint.
2014-03-04 11:12:41 -05:00
Martin Midtgaard
787bb65a0e
Cleanup and better comment.
2014-02-08 16:34:16 +01:00
Martin Midtgaard
c2034c8718
Merge remote-tracking branch 'upstream/master'
2014-02-08 16:16:02 +01:00
Marek Safar
6bc362b1db
[numerics] Fix type in Cosh
2014-02-07 23:45:48 +01:00
Martin Midtgaard
3fb128ac0d
Merge branch 'BigIntegerParse'
2014-02-07 11:23:37 +01:00
Martin Midtgaard
61a2e43f49
Implemented overloaded versions of Parse and TryParse functions for BigInteger.
...
Implementation is heavily inspired by Int32.
Added unit tests for the new functions.
2014-02-07 11:21:49 +01:00
Rodrigo Kumpera
b535b6a553
[bcl] Handle BigInt -> long conversions that should overflow but dont. Fixes #16526
2013-12-06 11:13:29 -05:00
Marek Safar
b888cf5f04
Update csproj files
2013-07-02 13:45:15 +02:00
Christoph Ruegg
c9cc1d15cd
[System.Numerics] BigInteger.GCD(0,x) must return abs(x) instead of x
...
According to the docs and matching the behavior in .Net, BigInteger's
GreatestCommonDivisor must return the absolute value of the non-zero
parameter if one of the parameters is zero.
Contains a fix and extended unit tests to cover the case.
2013-06-13 00:06:41 +02:00
Rodrigo Kumpera
043b9d2025
Fix new BigInteger().GetHashCode() to not throw.
2013-06-11 15:55:48 -04:00
Rodrigo Kumpera
f9dac2ef19
Better handle default value BigInteger. Fixes #11945
2013-06-11 15:08:59 -04:00
Rodrigo Kumpera
8480455584
Handle shifts by multiple of 32 correctly. Fixes #10887 .
2013-06-10 18:31:46 -04:00
Christoph Ruegg
9f43b4c822
Complex.ToString must not pass format string to string.Format
...
Type: System.Numerics.Complex
IFormattable format strings and string.Format formats are different
and incompatible. For example, `x.ToString("G")` and `x.ToString(null)`
must be equivalent to `x.ToString()`, but they behave very differently
with string.Format, where the former just returns "G" and the latter
throws an ArgumentNullException.
Changes System.Numerics.Complex.ToString to pass the format string to
double.ToString instead of string.Format.
Adds UnitTests for the changes in new ComplexTest.cs file
2013-06-09 16:19:43 +02:00
Martin Baulig
b38fcbcf2a
BigInteger.Parse/TryParse() overloads for .NET 4.0.
2013-03-12 17:23:00 -04:00
Marek Safar
cf650fb3fb
Update 4.5 bcl solution files
2013-02-21 17:25:06 +01:00
Marek Safar
78318771d5
Update csproj files
2013-02-07 16:34:23 +01:00
Marek Safar
2d2796f07b
Fix System.Core reference in VS projects
2012-06-26 13:26:56 +01:00
Marek Safar
8074a7d31e
Update csproj files
2012-04-05 15:46:25 +01:00
Marek Safar
88fde5a568
Add VS project files for test project
2012-02-10 14:56:23 +00:00
Marek Safar
91d40d754d
Update class library csproj files
2012-02-09 11:25:18 +00:00
Jordan Tucker
4be2945202
Fixed Bug 2761: BigInteger constructed with zero-filled byte array raises IndexOutOfRangeException
2012-01-06 12:13:51 -08:00
Rolf Bjarne Kvinge
2ed8d1c9ea
Add System.Numerics to the mobile profile.
2011-10-17 13:44:20 +02:00
Marek Safar
dd9b92a100
Install 4.0 profile as developers package and make 4.5 profile default gac target for 4.x
2011-09-26 12:08:01 +01:00
Rodrigo Kumpera
6cc928e075
Add regression test for #674120
2011-02-28 14:55:50 +01:00
Rodrigo Kumpera
f69a63ecdb
Handle CompareTo(long) and huge numbers.
...
* BigInteger.cs (CompareTo): Handle numbers
larger than 64bits.
Fixes #674120
2011-02-28 14:55:49 +01:00
Miguel de Icaza
38253abf8c
Add solution files
2011-02-12 22:09:49 -05:00
Marek Safar
bd05c6c836
Some .net 4.0 api compatibility fixes
2010-12-15 11:12:07 +00:00
Raja R Harinath
cd51491631
Fix a few cases of mixed line-endings
...
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath
b293948fb7
EOL handling
...
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Jb Evain
55284eb83a
2010-07-12 Jb Evain <[email protected] >
...
* Complex.cs: implement IFormattable.
svn path=/trunk/mcs/; revision=160241
2010-07-12 12:09:52 +00:00
Jb Evain
5476e948bd
2010-07-08 Jb Evain <[email protected] >
...
* Complex.cs: implement the different ToString overrides.
svn path=/trunk/mcs/; revision=160043
2010-07-08 10:35:27 +00:00
Jb Evain
7c2eea4585
2010-07-08 Jb Evain <[email protected] >
...
* Complex.cs: Fix Phase. Implement Acos, Asin, Atan, Exp,
Log, Log10, Pow and Sqrt.
svn path=/trunk/mcs/; revision=160039
2010-07-08 10:22:16 +00:00
Marek Safar
feffd90d26
2010-04-23 Marek Safar <[email protected] >
...
* Complex.cs: Add explicit BigInteger operator.
svn path=/trunk/mcs/; revision=156011
2010-04-23 14:53:17 +00:00
Rodrigo Kumpera
c769706386
2010-03-06 Rodrigo Kumpera <[email protected] >
...
* BigIntegerTest.cs: Tests for decimal stuff.
svn path=/trunk/mcs/; revision=153216
2010-03-07 00:09:31 +00:00