473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 17905

"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 misunderstanding 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
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...
0
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...
3
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? ...
1
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....
4
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
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...
1
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);...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.