﻿/*
  This is simple code to help in how to use Calccedo Engine Library

*/
package testcalccedo;
import com.precious.calccedo.handlers.CalccedoHandler;
/**
 *
 * @author Ibrahim Abdsaid Hanna
 *         ibrahim.seniore@gmail.com
 */

public class TestCalccedo extends CalccedoHandler{

    public TestCalccedo(){
        super.init();
        // to show tracing operations of Calccedo
        super.enableDeepTrace(true);
        
    }

    
   
     
    
    public static void main(String[] args) {
       // this is sample formula  
       String formula="1+1+2+3Sin(30)+10";
       
       // instantiate object from CalccedoHandler 
       CalccedoHandler calccedoHandler=new CalccedoHandler();
       calccedoHandler.enableDeepTrace(true);

       // now let's get result, just by calling calccedo calculate method
       System.out.println("Welcome to Calccedo Engine Library");
       System.out.println("Result is "+calccedoHandler.calculate(formula));
       
    }  
}

@@ -405,27 +405,28 @@
 leDeepTrace(
-tru
+fals
 e);%0A        
@@ -563,17 +563,17 @@
 %221+1+2+3
-S
+s
 in(30)+1
@@ -618,24 +618,28 @@
 ct from 
+Test
 Calccedo
 Handler 
@@ -630,23 +630,16 @@
 Calccedo
-Handler
  %0A      
@@ -639,24 +639,28 @@
 %0A       
+Test
 Calccedo
 Handler 
@@ -651,23 +651,16 @@
 Calccedo
-Handler
  calcced
@@ -672,24 +672,28 @@
 ler=new 
+Test
 Calccedo
 Handler(
@@ -688,62 +688,9 @@
 cedo
-Handler();%0A       calccedoHandler.enableDeepTrace(true
+(
 );%0A%0A

Update TestCalccedo.java