Click here to Skip to main content
12,894,200 members (59,542 online)
Click here to Skip to main content
Add your own
alternative version


34 bookmarked
Posted 4 Apr 2007

Complex Calculator

, 26 Jun 2007
Rate this:
Please Sign up or sign in to vote.
This calculator is written as a demo application for the SCI library

Screenshot - A_Complex_Calculator.png


This calculator is written as a demo application for the SCI library. It has a similar interface to the Windows built-in calculator (Standard View) and it can handle complex numbers as operands. Complex Calculator is a more general-purpose and usable calculator.

The interface of Complex Calculator

  • Display: Outputs the results of calculations and current number inputs.
  • Input: Buttons for inputting digits and calculation operations.

Use of Sci.Math.ComplexNumber

The manipulation of complex numbers is powered by Sci.Math.ComplexNumber. Sci.Math.ComplexNumber is implemented using the following structure:

Sci.Math.ComplexNumber z = new Sci.Math.ComplexNumber(); 

Then z represents 0+i0. We can change the Real part or the Imaginary part of z using:

z.Re = 3;
z.Im = 4;

ComplexNumber supports Addition, Subtraction, Multiplication and Division. For instance:

Sci.Math.ComplexNumber w = new Sci.Math.ComplexNumber(1, 2);
w = w + z;

Then w represents 4+i6. Calculations of the modulus and argument of z can be retrieved from the properties Modulus and Argument:

double m = z.Modulus;
double a = z.Argument; 


Although this "Complex" Calculator is not truly complex, its intent is to enable users who use complex numbers to quickly get answers from basic operations for complex numbers. Many scientific software developers also know of the SCI library.



  • 4 April, 2007 -- Version
  • 26 June, 2007 -- Article edited and moved to the main article base


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Taiwan Taiwan
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralNice Calc, some suggestions. Pin
WMBWMB17-Aug-07 3:30
memberWMBWMB17-Aug-07 3:30 
QuestionCan not Extract from ZIP Pin
WMBWMB14-Aug-07 7:39
memberWMBWMB14-Aug-07 7:39 
AnswerRe: Can not Extract from ZIP Pin
livibetter14-Aug-07 18:37
memberlivibetter14-Aug-07 18:37 
GeneralCannot extract the files Pin
vkuttyp26-Jun-07 6:28
membervkuttyp26-Jun-07 6:28 
GeneralRe: Cannot extract the files Pin
livibetter26-Jun-07 7:03
memberlivibetter26-Jun-07 7:03 
GeneralCool Pin
merlin98126-Jun-07 3:31
membermerlin98126-Jun-07 3:31 
GeneralScientific Calculator Pin
Coskun Oba9-Apr-07 4:48
memberCoskun Oba9-Apr-07 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170424.1 | Last Updated 26 Jun 2007
Article Copyright 2007 by livibetter
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid