DCSQuad Solver is a standard quadratic solver with the capability to solve for both real or imaginary roots of a quadratic equation. Its unique feature is that it is built using the Doors CS BASIC Libraries (DCSB Libs) for text input, mouse movement and clicking, and interface rendering. Doors CS 6.7 beta or higher required. As with all Doors CS GUI things, the [ALPHA] key will switch between letters and numbers/symbols when typing, [2nd] or [trace] moves between text editing and mouse movement, and [2nd] or [trace] clicks on buttons. Screenshots and code below for your edification.

Download

DCSQuad Solver v1.0

Download

DCSQuad Solver v1.0

**BASIC Code wrote:**

::DCS

:"61B2341C382C4D86

:If 1337≠det([[42

:Then

:Disp "DOORS CS 6.7 OR","HIGHER REQUIRED","WWW.CEMETECH.NET

:Return:End

:Lbl A

:DelVar ADelVar BDelVar C

:E9→S:Ans→T

:Lbl B

:sum(10

:sum(7,1,"8850205088","Quadratic Solver

:sum(7,5,32

:sum(7,4,2,2,"A:

:sum(7,4,2,11,"B:

:sum(7,4,2,20,"C:

:sum(7,9,9,2,45,16,det(1,A

:sum(7,9,9,11,45,16,det(1,B

:sum(7,9,9,20,45,16,det(1,C

:If E9≠abs(S

:Then

:"S1: "+det(1,abs(S-iimag(S

:sum(7,4,2,37,0,Ans

:If 0≠imag(S

:sum(7,4,3+sum(0,Ans),37,0,"+"+det(1,abs(imag(S)))+"i

:End

:If E9≠abs(T:Then

:"S2: "+det(1,abs(T-iimag(T

:sum(7,4,2,45,0,Ans

:If 0≠imag(T

:sum(7,4,3+sum(0,Ans),45,"+"+det(1,abs(imag(T)))+"i

:End

:sum(7,7,60,2,"Solve

:sum(7,7,60,11,"Reset

:sum(7,7,60,20,"Quit

:sum(12,45,32,10→L6

:sum(10

:If 10=L6(4

:Goto A

:If 11=L6(4) or not(L6(4

:Then

:ClrHome:Real

:Disp "DCSQUAD SOLVER","BY Kerm MARTIAN

:Return:End:a+bi:Str0+"┼→Str0

:inString(Str0,"┼",2→X

:expr(sub(Str0,2,X-2→A

:inString(Str0,"┼",X+1→Y

:expr(sub(Str0,X+1,Y-X-1→B

:inString(Str0,"┼",Y+1→X

:expr(sub(Str0,Y+1,X-Y-1→C

:√(BČ-4AC

:{‾B+Ans,B+Ans}/2A→L5

:L5(1→S

:L5(2→T

:Goto B

Generated by SourceCoder, © 2005-2010 Cemetech

:"61B2341C382C4D86

:If 1337≠det([[42

:Then

:Disp "DOORS CS 6.7 OR","HIGHER REQUIRED","WWW.CEMETECH.NET

:Return:End

:Lbl A

:DelVar ADelVar BDelVar C

:E9→S:Ans→T

:Lbl B

:sum(10

:sum(7,1,"8850205088","Quadratic Solver

:sum(7,5,32

:sum(7,4,2,2,"A:

:sum(7,4,2,11,"B:

:sum(7,4,2,20,"C:

:sum(7,9,9,2,45,16,det(1,A

:sum(7,9,9,11,45,16,det(1,B

:sum(7,9,9,20,45,16,det(1,C

:If E9≠abs(S

:Then

:"S1: "+det(1,abs(S-iimag(S

:sum(7,4,2,37,0,Ans

:If 0≠imag(S

:sum(7,4,3+sum(0,Ans),37,0,"+"+det(1,abs(imag(S)))+"i

:End

:If E9≠abs(T:Then

:"S2: "+det(1,abs(T-iimag(T

:sum(7,4,2,45,0,Ans

:If 0≠imag(T

:sum(7,4,3+sum(0,Ans),45,"+"+det(1,abs(imag(T)))+"i

:End

:sum(7,7,60,2,"Solve

:sum(7,7,60,11,"Reset

:sum(7,7,60,20,"Quit

:sum(12,45,32,10→L6

:sum(10

:If 10=L6(4

:Goto A

:If 11=L6(4) or not(L6(4

:Then

:ClrHome:Real

:Disp "DCSQUAD SOLVER","BY Kerm MARTIAN

:Return:End:a+bi:Str0+"┼→Str0

:inString(Str0,"┼",2→X

:expr(sub(Str0,2,X-2→A

:inString(Str0,"┼",X+1→Y

:expr(sub(Str0,X+1,Y-X-1→B

:inString(Str0,"┼",Y+1→X

:expr(sub(Str0,Y+1,X-Y-1→C

:√(BČ-4AC

:{‾B+Ans,B+Ans}/2A→L5

:L5(1→S

:L5(2→T

:Goto B

Generated by SourceCoder, © 2005-2010 Cemetech