summaryrefslogtreecommitdiff
path: root/CSMath/src/bisection/Dual.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2018-10-14 11:45:12 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2018-10-14 11:45:12 -0400
commitc3938640678c11f1a6319d1534ff79f433b65cc5 (patch)
treee34181720547c54d37950b97f54c15c591a8e2e0 /CSMath/src/bisection/Dual.java
parent8f42378c707c8c962082e394fe67ac3bb5cd557b (diff)
Convert to Maven project
As a side effect of doing so, use classes from the library.
Diffstat (limited to 'CSMath/src/bisection/Dual.java')
-rw-r--r--CSMath/src/bisection/Dual.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/CSMath/src/bisection/Dual.java b/CSMath/src/bisection/Dual.java
deleted file mode 100644
index de5b004..0000000
--- a/CSMath/src/bisection/Dual.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package bisection;
-
-/**
- * Represents a 'dual' number.
- *
- * Think imaginary numbers, where instead of i, we add a value d such that d^2 =
- * 0.
- */
-public class Dual {
- /**
- * The real part of the dual number.
- */
- public double real;
- /**
- * The dual part of the dual number.
- */
- public double dual;
-
- /**
- * Create a new dual with both parts zero.
- */
- public Dual() {
- real = 0;
- dual = 0;
- }
-
- /**
- * Create a new dual number with a zero dual part.
- *
- * @param real
- * The real part of the number.
- */
- public Dual(double real) {
- this.real = real;
- this.dual = 0;
- }
-
- /**
- * Create a new dual number with a specified dual part.
- *
- * @param real
- * The real part of the number.
- * @param dual
- * The dual part of the number.
- */
- public Dual(double real, double dual) {
- this.real = real;
- this.dual = dual;
- }
-
- @Override
- public String toString() {
- return String.format("<%f, %f>", real, dual);
- }
-} \ No newline at end of file