Imaginary number
-
any way to program so that visual basic 2005 express can calculate imaginary number because i am trying to write a program which is to count the root of cubic for example: dim a as double dim b as double dim c as double a = sqrt(b+c) ' how if the sum of b and C is not positive.. but i wan it to continue the the calculation
-
any way to program so that visual basic 2005 express can calculate imaginary number because i am trying to write a program which is to count the root of cubic for example: dim a as double dim b as double dim c as double a = sqrt(b+c) ' how if the sum of b and C is not positive.. but i wan it to continue the the calculation
You could use a complex number type (class or struct) and teach it the basics. There are several CP articles on this including this one[^]. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
You could use a complex number type (class or struct) and teach it the basics. There are several CP articles on this including this one[^]. :)
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
any way to program so that visual basic 2005 express can calculate imaginary number because i am trying to write a program which is to count the root of cubic for example: dim a as double dim b as double dim c as double a = sqrt(b+c) ' how if the sum of b and C is not positive.. but i wan it to continue the the calculation
I did end up creating a program for my calculator that returned a string which contained the imaginary number as well as the correct formula formatting, but I had to hard code the logic behind creating an I (imaginary) and for what reason, etc.
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios[^]
-
any way to program so that visual basic 2005 express can calculate imaginary number because i am trying to write a program which is to count the root of cubic for example: dim a as double dim b as double dim c as double a = sqrt(b+c) ' how if the sum of b and C is not positive.. but i wan it to continue the the calculation
ncjlee wrote:
any way to program so that visual basic 2005 express can calculate imaginary number because i am trying to write a program which is to count the root of cubic for example: dim a as double dim b as double dim c as double a = sqrt(b+c)
You could use the "SCI" library to do this. See bellow: http://scinet.sourceforge.net/index.php/Home[^]
Pete Soheil DigiOz Multimedia http://www.digioz.com