Solved

Using the Math RTL

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 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