[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
3
Medium Priority
?
206 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
[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
3 Comments
 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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