JLab

dataStructures
Class Expression

java.lang.Object
  extended by dataStructures.BinaryTree
      extended by dataStructures.Expression

public class Expression
extends BinaryTree

คลาสที่สร้างนิพจน์คณิตศาสตร์ด้วยต้นไม้นิพจน์

Author:
สมชาย ประสิทธิ์จูตระกูล

Constructor Summary
Expression(Expression e)
           
Expression(List infix)
           
 
Method Summary
 void diff()
           
 double eval()
           
static List infix2Postfix(List infix)
           
 
Methods inherited from class dataStructures.BinaryTree
height, inOrder, numNodes, postOrder, preOrder, toArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Expression

public Expression(Expression e)

Expression

public Expression(List infix)
Method Detail

eval

public double eval()

diff

public void diff()

infix2Postfix

public static List infix2Postfix(List infix)

JLab