?
Solved

complex number calculations

Posted on 2003-11-27
3
Medium Priority
?
207 Views
Last Modified: 2010-04-05
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
Comment
Question by:dekesh
1 Comment
 
LVL 1

Accepted Solution

by:
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

809 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