[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
Solved

# complex number calculations

Posted on 2003-11-27
Medium Priority
206 Views
Hi I am doing some work in my university. I need some help with the problem given on the following website:

http://www.ee.ic.ac.uk/se1/consoleApps/week8/index.html

Please could you tell me how I could program such a problem using Delphi (pascal language) or give me some clues as to how I could go about the task.

Thank You
DEKESH PATEL
0
Question by:dekesh
[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

LVL 1

Accepted Solution

mpoots earned 240 total points
ID: 9837751
I am not very good in Math but I would make something like this:

procedure TForm1.Button1Click(Sender: TObject);
var
j : Double;
begin
j := -1;
while True do
begin
j:= j + 0.00001;
if ((1 - j) / 2) = 0.5 - (0.5 * j) then
begin
// You have found the value of J
ShowMessage(FloatToStr(j));
end;
end;
end;

0

## Featured Post

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…
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…