Solved

Using the Math RTL

Posted on 1997-04-22
2
356 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

728 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