English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

check out http://www.pscode.com for great source code samples.

2007-02-05 16:05:30 · answer #1 · answered by Richard H 7 · 0 0

Well, no VB through VB6 has complex numbers (and vb.net handles it through classes--and I'm not even sure that the net framework has a complex class--memo to self: check). So you're really up against a world of pain. The language doesn't support it natively and creating a class (really a com component) will be very very nasty. VB6 doesn't handle class initialization from constants, for example.

So: if you have the most remote chance of using c++ or fortran, do so. Else, your pain is my pain, but I'm glad it really isn't.

2007-02-05 14:49:47 · answer #2 · answered by miket 4 · 0 0

Create your class...
Class ComplexNumber
public realpart as double
public imaginarypart as double

public sub Add(r as double, i as double)
realpart = realpart + r
imaginarypart = imaginarypart + i
end sub

...you get the idea.

2007-02-05 18:02:11 · answer #3 · answered by KnightSpot 2 · 0 0

fedest.com, questions and answers