Permalink
Browse files

Bug #15257: Late commit, this should be committed at 1.1.0a1!

  • Loading branch information...
1 parent f246794 commit 0cbe55d6bf3c04ebdcfa96ea32340ce8a1ddd275 Firman Wandayandi committed Dec 29, 2008
Showing with 21 additions and 1 deletion.
  1. +21 −1 Math/Numerical/RootFinding/Common.php
@@ -74,7 +74,7 @@ class Math_Numerical_RootFinding_Common
*/
var $options = array(
'max_iteration' => 30,
- 'err_tolerance' => 1E-005,
+ 'err_tolerance' => 0.00001, // Equals to 1.0E-5
'divergent_skip' => true
);
@@ -166,6 +166,26 @@ function set($option, $value = null)
}
}
+ // }}}
+ // {{{ get()
+
+ /**
+ * Get the option value.
+ *
+ * @param $option Option name.
+ *
+ * @return mixed Value of the option or PEAR_Error on failure.
+ * @since Method available since Release 1.1.0a1
+ */
+ function get($option)
+ {
+ if (!array_key_exists($option, $this->options)) {
+ return PEAR::raiseError('Unknown option \'' . $option . '\'');
+ }
+
+ return $this->options[$option];
+ }
+
// }}}
// {{{ compute()

0 comments on commit 0cbe55d

Please sign in to comment.