Commit Graph

4 Commits

Author SHA1 Message Date
Atgeirr Flø Rasmussen
42cdfa27a0 Use named constructor pattern.
Made AutoDiff::Forward constructor private.
Added static methods constant(), variable(x) and function(x, dx).
2013-04-30 11:05:59 +02:00
Bård Skaflestad
e17447d6cd Add further test cases
- Polynomials (including mixed mode arithmetic)
  - Cosines (including mixed mode arithmethic)
  - Square roots (including mixed mode arithmetic)
2013-04-30 00:08:02 +02:00
Bård Skaflestad
a4cdbdc049 Add test cases for multiplication and division
Helped uncover syntax error (misprint) fixed in commit 8105166.
2013-04-29 14:52:38 +02:00
Bård Skaflestad
790f6a06b2 Add simple test cases
- Initialisation
  - Addition (including mixed mode)
  - Subtraction (including mixed mode)
2013-04-29 14:12:57 +02:00