Solved

Using the Math RTL

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month6 days, 18 hours left to enroll

622 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