Category “math”

11 posts

Unifying Math and Computer Science

I found articulating how and why mathematics is important in computer science challenging. It’s always been my intuition--even more so, that they are interdependent -- but can I support this claim? The importance of math is most clear in computer graphics because of the heavy use of linear algebra in
Read more » Feb 8, 2009, 3:17PM
Math

Math & Computer Science

I have always believed in a vital relationship between mathematics and computer science. In fact, my second blog post in 2003 is also entitled “Math and Computer Science” and points to several arguments for a more incorporation of mathematics in computer science. This belief was strengthened by being introduced to
Read more » Feb 8, 2009, 1:50PM
Math

Mathematical Programming

I began writing a post on my ideas of the relationship between mathematics and computer science, which grew very long, so I am splitting the one long post in several, and I will just include links to each post here. Table of Contents Math and Computer Science Unifying Math and
Read more » Feb 8, 2009, 1:19PM
Math

BCL Math

When I met with the .NET BCL team last February, one of the PMs mentioned potential enhancements to the Math class in the base class library of the .NET Framework. Katy King from the team also blogged about the new Math additions in Orcas. Features included complex numbers, permutations, arbitrary precision
Read more » Dec 12, 2005, 2:19AM
.NET , Math

Ternary Systems

I have always been fascinated with alternative computer representations of data such as numbers. When we standardize on a particular representation of any type of data, it may make us more efficient, but I also think that we lose something in process. This is why we have a decimal type in an
Read more » Jun 6, 2005, 2:16AM
.NET , Math

Floating Point Arithmetic, II

Some answers from the last post... Math.Round(2.5) = 3. False.Math.Round uses banker's rounding, which rounds the fraction .5 to the nearest even number. Traditional arithmetic rounding introduces an upward bias, whereas the heuristic used in banker's rounding cancels out the bias. When aggregating several random rounded numbers, banker's rounding is
Read more » Jan 20, 2005, 11:08PM
.NET , Math

Floating Point Arithmetic

Eric Lippert has a serious of recent blog posts on Floating Point Arithmetic, if you were interested in or following any of my prior math quiz posts.  Also, Eric Gunnerson talks about floating point arithmetic in a December 2003 post, and posts to a canonical discussion of floating point arithmetic
Read more » Jan 18, 2005, 6:36AM
.NET , Math

Numbers in .NET

Working in Excel, I encountered all sorts of issues with floating point numbers. Excel had to deal with NaNs (of which there are many), +/- infinity, negative zeros (1/NegativeInfinity), and denormalized numbers (numbers smaller than 1/double.MaxValue but larger than zero). In addition, there were also a number of rounding issues,
Read more » Jan 10, 2005, 4:17PM
.NET , Math

Math Quiz II

Just before I give any answers, here are some more .NET math questions: If x and y are double and x = y,  then 1/x = 1/y. If x is an int, then x >> 1  = x / 2. If x and y are decimal and x = y, 
Read more » Jan 10, 2005, 9:10AM
.NET , Math

.NET Math Quiz

I have decided to test how numerate (mathematically literate) my readership is.  These are questions that one might find in a high school test... except I substituted the set of ints or longs for that of integers and the set of doubles for that of reals. For each statement, answer
Read more » Jan 9, 2005, 12:20PM
.NET , Math

Decimal Performance

I did a quick test to compare the performance of basic mathematical operations on the different numeric types provided by the runtime. My machine uses an Intel Pentium 4. The numbers below are expressed in terms of the amount of time it takes to perform one integer addition. .DivisionMultiplyAdditionBitwise Or
Read more » Mar 13, 2004, 3:57AM
.NET , Math

 

Navigation

Categories

About

Net Undocumented is a blog about the internals of .NET including Xamarin implementations. Other topics include managed and web languages (C#, C++, Javascript), computer science theory, software engineering and software entrepreneurship.

Social Media