jmathlibtests.toolbox.symbolic
Class testDerivative

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

public class testDerivative
extends TestCase


Field Summary
protected  Interpreter ml
           
 
Constructor Summary
testDerivative(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 testDerivative2()
          Test the derivative of an exponential exp(2x) => 2*exp(2x) NOT IMPLEMENTED
 void testDerivative3()
          Test the derivative of a trig function sin(x) => cos(x) NOT IMPLEMENTED
 void testLinearDerivative1()
          Test the integral of a linear equation x^2 + x + 1 => 2x+1
 void testLinearDerivative2()
          Test the integral of a linear equation 2*x = 2
 void testLinearDerivative3()
          Test the integral of a linear equation x*y = y
 void testLinearDerivative4()
          Test the integral of a linear equation 1/x = -1/x^2
 
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

testDerivative

public testDerivative(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()

testLinearDerivative1

public void testLinearDerivative1()
Test the integral of a linear equation x^2 + x + 1 => 2x+1


testLinearDerivative2

public void testLinearDerivative2()
Test the integral of a linear equation 2*x = 2


testLinearDerivative3

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


testLinearDerivative4

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


testDerivative2

public void testDerivative2()
Test the derivative of an exponential exp(2x) => 2*exp(2x) NOT IMPLEMENTED


testDerivative3

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


reduce

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

FOOTER

BOTTOM