One of the big upgrades included in .NET 4.0 that seems to have been missed by most commentators is the introduction of support for complex numbers.
If you are a scientist then all I can say is - I'm sorry it has taken till version 4.0 to get complex support in .NET. It might not have been a real problem, as it has always been easy enough to add complex support by way of a custom struct, but its the thought that counts. Now we have a standard complex number facility that means you don't have to go DIY.
The new features are contained in System.Numerics but this isn't included automatically in a startup project - yes complex numbers are still a niche topic. To make use of it you have to right click on the References in the Solution Explorer and add System.Numerics. To make using the new features easier also add:
using System.Numerics;
如果不算,为什么?
算的话,应该存在很多年了,为什么MS 不改?
是因为网上有很多变通方案吗? MS 不好意思侵权?
msdn.microsoft.com/en-...s5e2h.aspx
转贴:
One of the big upgrades included in .NET 4.0 that seems to have been missed by most commentators is the introduction of support for complex numbers.
If you are a scientist then all I can say is - I'm sorry it has taken till version 4.0 to get complex support in .NET. It might not have been a real problem, as it has always been easy enough to add complex support by way of a custom struct, but its the thought that counts. Now we have a standard complex number facility that means you don't have to go DIY.
The new features are contained in System.Numerics but this isn't included automatically in a startup project - yes complex numbers are still a niche topic. To make use of it you have to right click on the References in the Solution Explorer and add System.Numerics. To make using the new features easier also add:
using System.Numerics;
......
www.i-programmer.info/...-in-c.html
msdn.microsoft.com/en-...s5e2h.aspx
bluebit.hubpages.com/h...s-in-Net-C
www.codeproject.com/Ar...ex-Numbers