Skip to content
dtitov edited this page Jul 24, 2012 · 2 revisions
package com.bracer.test;
import java.text.ParseException;
import com.github.bracer;
public class BracerTest {
    public static void main(String[] args) throws ParseException {
        BracerParser bp = new BracerParser(3);
        String input = "-sin(3+4I+cosh(6*I)/exp(10/pow(22,-1)))";
        bp.parse(input);
        System.out.println(bp.evaluate());
        //the output will be: -3.854 + 27.017I
    }
}
Clone this wiki locally