Post Reply 
Quadratic Explorer App
11-10-2016, 02:36 PM (This post was last modified: 11-29-2016 10:22 PM by compsystems.)
Post: #1
Quadratic Explorer App
Hello,
I want to swich from the "terminal view" to the application "Quadratic Explorer App",
but only at the end of the program is changed to the application, does not follow the logic of the algorithm


PHP Code:
#cas 
    
dinamicLkn_quadExplorer():=
    
begin
        local coeff
polrootsdiscriminant;
        print; 
// clear terminal view
        // freeze;

        
print("Current view: TERMINAL VIEW");
        
coeff := [0.5, -32.5];
        
pol := SLIST(coeff.*seq('x'^k,k,2,0));
        
//roots := SOLVE(0.5, -3, 2.5); 
        //roots := SOLVE(pol[1], pol[2], pol[3]);
        
roots := Quadratic_Explorer::SOLVE(0.5, -32.5);

        print( 
"COEF: " coeff ); 
        print( 
"POL: " pol ); 
        print( 
"ROOTS: x1 = " roots[1] + ", x2 = " roots[2] );
        
discriminant := DELTA(0.5, -32.5);
        print( 
"DISCRIMINAT: D = " discriminant ); wait();

        
startapp("Quadratic_Explorer");  wait(); //  current: Quadratic_Explorer


         
startview(1);


        print(
"Again on the terminal view"); wait();   // return to terminal view  & Wait for a key  ...

        
return "done"//Returns an output value (string) 
    
end;
#end 

request: the Quadratic_Explorer() CMD Should initialize the polynomial expression of the quadratic function.

Quadratic_Explorer(a,b,c); // A*X^2+B*X+C
Quadratic_Explorer(0.5, -3, 2.5);

[Image: QuadraticExplorerApp_hp_prime_image00.png]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Quadratic Explorer App - compsystems - 11-10-2016 02:36 PM
RE: Quadratic Explorer App - Carlos295pz - 11-10-2016, 08:52 PM
RE: Quadratic Explorer App - Jean-Michel - 11-14-2016, 12:17 PM
RE: Quadratic Explorer App - compsystems - 11-21-2016, 09:12 PM



User(s) browsing this thread: 1 Guest(s)