Solved

Using the Math RTL

Posted on 1997-04-22
2
353 Views
Last Modified: 2010-04-04
I need to use the function arcsin(), which according to the help file exists in the unit Math.  I have tried putting Math in the uses clause at the top of my program but this just produces the error

File not found: 'Math.pas'

Math.pas does not exist on my hard disk at all so I am obviously doing something wrong.

I am using Delphi 2.0

Thanks for your help !!
0
Comment
Question by:cm6087
2 Comments
 

Author Comment

by:cm6087
ID: 1335615
Edited text of question
0
 
LVL 4

Accepted Solution

by:
StevenB earned 50 total points
ID: 1335616
 Assuming that your uses clause is correct then Delphi should find the Math.Pas file if it exists on the search path, so either your search path is incomplete or the Math.pas file does not exist.
  Try:

  Run 'Find' from your start menu on 'Math.Pas' it should locate the Math.Pas File (usually in C:\ProgramFiles\Borland\Delphi2.0\Source\RTL\SYS) if you cannot find this file then it is not surprising that Delphi cannot. Reinstall Delphi and it should appear, if not then you've got a big problem, contact Borland.
  If you do find the file than the problem is probably that it is not on the search path for some reason. You can add the directory where the file is located to the search path by going to the Directories/Conditionals tab of the Project/Options Menu. Enter the directory into the Search Path Edit Box.
  Although this last option will get your project to compile, it is curious that the Math.Pas file is not where it should be. For this reason my advice would be to reinstall Delphi, having completely removed the previous installation first.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question