jmathlibtests.toolbox.symbolic
Class testIntegral

java.lang.Object
  extended by jmathlib.tools.junit.framework.Assert
      extended by jmathlib.tools.junit.framework.TestCase
          extended by jmathlibtests.toolbox.symbolic.testIntegral
All Implemented Interfaces:
Test

public class testIntegral
extends TestCase


Field Summary
protected  Interpreter ml
           
 
Constructor Summary
testIntegral(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
private  java.lang.String reduce(java.lang.String input)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static Test suite()
           
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testIntegral2()
          Test the integral of an exponential exp(x) => exp(x) NOT IMPLEMENTED
 void testIntegral3()
          Test the integral of a trig function sin(x) => cos(x) NOT IMPLEMENTED
 void testLinearIntegral1()
          Test the integral of a linear equation x^2 + x + 1 => 0.333x^3+0.5x^2+x
 void testLinearIntegral2()
          Test the integral of a linear equation x => 0.5x^2
 void testLinearIntegral3()
          Test the integral of a linear equation y => y*x
 void testLinearIntegral4()
          Test the integral of a linear equation 1 => x
 void testLinearIntegral5()
          Test the integral of a linear equation 1/x^2 = -1/x
 
Methods inherited from class jmathlib.tools.junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class jmathlib.tools.junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ml

protected Interpreter ml
Constructor Detail

testIntegral

public testIntegral(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

setUp

protected void setUp()
Description copied from class: TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class TestCase

tearDown

protected void tearDown()
Description copied from class: TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

Overrides:
tearDown in class TestCase

suite

public static Test suite()

testLinearIntegral1

public void testLinearIntegral1()
Test the integral of a linear equation x^2 + x + 1 => 0.333x^3+0.5x^2+x


testLinearIntegral2

public void testLinearIntegral2()
Test the integral of a linear equation x => 0.5x^2


testLinearIntegral3

public void testLinearIntegral3()
Test the integral of a linear equation y => y*x


testLinearIntegral4

public void testLinearIntegral4()
Test the integral of a linear equation 1 => x


testLinearIntegral5

public void testLinearIntegral5()
Test the integral of a linear equation 1/x^2 = -1/x


testIntegral2

public void testIntegral2()
Test the integral of an exponential exp(x) => exp(x) NOT IMPLEMENTED


testIntegral3

public void testIntegral3()
Test the integral of a trig function sin(x) => cos(x) NOT IMPLEMENTED


reduce

private java.lang.String reduce(java.lang.String input)

FOOTER

BOTTOM