473,756 Members | 1,964 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where is System.Math ???

I'm pretty damn sure there should be a System.Math library somewhere
around .Net.

But I cannot find it.
What is the name of the reference for it?
Any Ideas?
What could I be doing wrong?

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 16 '05 #1
3 17947

"pontifikas " wrote...
I'm pretty damn sure there should be a System.Math
library somewhere around .Net.

But I cannot find it.
What is the name of the reference for it?
My guess is that you're looking for the *class* System.Math, that provides
constants and static methods for trigonometric, logarithmic, and other
common mathematical functions.

It's found in Mscorlib.dll, where really most of the useful stuff in the
System namespace can be found. This assembly is present and available to the
compiler and CLR by default.
Any Ideas?
To use it, you just use it! E.g.:

double twoPowerFour = System.Math.Pow (2.0, 4.0);

If it doesn't work, your installation is most likely corrupt somehow...

What could I be doing wrong?


That's impossible to know, as we don't know what you're doing now...

// Bjorn A
Nov 16 '05 #2
I may be misunderstandin g what you are after but in both ASP.Net and
WinForms projects the System.Math class (and all it's static methods)
are available by default. They are part of the mscorlib.dll assembly.
You should be able to use them outright. The help file has information
about the class under the Math Class topic. If this isn't what you were
after, please provide more details so we can try to address it.

Have A Better One!

John M Deal, MCP
Necessity Software

pontifikas wrote:
I'm pretty damn sure there should be a System.Math library somewhere
around .Net.

But I cannot find it.
What is the name of the reference for it?
Any Ideas?
What could I be doing wrong?

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Nov 16 '05 #3
Thank you for the replies mates but I found out what my mistake was.

This is a class providing static methods.So it doesn't need to be
included(using System.Math) as I thought it should.

Anyway.Thanx again. :)

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2254
by: Ark | last post by:
Hi everyone, Does anyone know if Direct3D overloads System.Math functions? Also is it possible to access the base functions of the overloaded function (in other words restore original of the overlaoded function)? Thank you
0
1387
by: BuddyWork | last post by:
Hello, Here is an update. There is no differences with the function System.Math.Log10 under any operating system. The problem is with the casting of the datatype double and value Infinite to datatype int.
3
8530
by: DrJRice | last post by:
I have just switched from VB6 to vb .net. In Vosual Studio.net I am missing the reference to System.Math and can not find it anywhere. I assume is is System.Math.dll. Where the hell is it? Thanks, Jim
1
1607
by: Jim | last post by:
I just switched to VB .net from VB 6. In Visual Studio .net, I am missing the System.Math reference and functions like Sqrt undefined. I have looked everywhere and can not find a reference for it. Any help here? Thanks, Jim
4
4191
by: muzilli | last post by:
Howdy all, what is the same DivRem function for Mobile development. I'm using the ..NET compact framework. Thanks all, Marcelo Muzilli
2
5056
by: Radek Cerny | last post by:
Hopefully I'm just missing something obvious, but this method (or more likely the CLR/complier) has a bug where I can not use the overloaded version: Round( double value, int digits ) It always seems to use the Round(decimal value, int decimals) version, no matter what the first parameter is - double or decimal. Intellisense agrees with the compiler - incorrectly. Is it me, a known issue or a new issue? I need this quite...
1
3102
by: merarajesh | last post by:
hi, I am developing intensity of wave in physics. I am using system.math in c#. every thing is fine. but the result of Intensity is not well. my formula is:- I=4*a2*cos2(delta/2); delta=2pi/lambda*trangle; trangle=dx/d lambda=constant*10pow-10;
2
4331
by: Richard Ballin | last post by:
Hello All, I am taking a class using Visual Studio C++ Express 2010 and on one of the first projects i need to use the Math::Pow() function. The book does not do a good job of explaining how to use this. I was able to create the program and calculate simple interest fine with a normal formula however once I needed to calculate compounded interest it required a exponent. Line 203 of the Code is where the error is. "error C2660:...
0
9287
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10046
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9857
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9722
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7259
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3817
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3369
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2677
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.