Visual Basic.NET 7.x (2002/03)Windows VistaWindows 2003Windows 2000Windows XPIntermediateDevWindows.NETVisual Basic
Complex class - Working with complex numbers
This class performs operations and evaluates functions with complex numbers. There are different kinds of available functions (log functions, trigonometric functios...). Check it out.
Introduction
This is my first VB.NET project, so don't expect a lot of object orientated principles in this, but I still think this is an excellent class and I'm not sure you can find another class like this one. This class performs operations and evaluates functions with complex numbers. There are a lot of functions (log functions, trigonometric functions...) available. So check it out.
Functions
op_Add(ByVal z As Complex)
– addz
op_Sub(ByVal z As Complex)
– subz
op_Mul(ByVal z As Complex)
– multiply withz
op_Div(ByVal z As Complex)
– divide withz
f_Sqr()
– get squaref_Pow(ByVal n As Integer)
– (X+Yi)^nf_PowCplx(ByVal z As Complex)
- (X+Yi)^zf_Exp()
– Exp(X+Yi)f_Conjugate()
f_Invert()
– (1 / (X+Yi))f_Log(ByVal base As Byte)
– Log((X+Yi),base)f_Ln()
– Ln(X+Yi)f_Sin()
– sin(x+yi)f_Cos()
– cos(x+yi)f_ATan()
– arctan(x+yi)f_Tan()
– tan(x+yi)f_ACot()
– acrcot(x+yi)f_ASin()
– arcsin(x+yi)f_ACos()
– arccos(x+yi)f_Acsc()
– arccosec(x+yi)f_Asec()
– arcsec (x+yi)prop_Angle()
– return angleprop_Abs()
– return absolute valueToString() As String
– Create string (example 2-5i, or –i, or 8+i)set_FromXY(ByVal mX As Double, ByVal mY As Double)
– set real and imaginary frommX
andmY
set_CopyComplex(ByRef mCplx As Complex)
– set real and imaginary frommCplx
Properties
Real() As Double
Imaginary() As Double