Solved

Using the Math RTL

Posted on 1997-04-22
2
346 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now