Changeset 3904 for trunk/examples
- Timestamp:
- 10/29/07 08:19:08 (15 months ago)
- Files:
-
- 1 modified
-
trunk/examples/threads/functions/SCRIPT.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/threads/functions/SCRIPT.txt
r3894 r3904 15 15 % find the roots of some functions using each one of provided methods: 16 16 17 | ?- bisection::find_root(f1, 1.0, 2.3, 1 e-15, Zero).17 | ?- bisection::find_root(f1, 1.0, 2.3, 1.0e-15, Zero). 18 18 19 19 Zero = 2.0 20 20 yes 21 21 22 | ?- newton::find_root(f1, 1.0, 2.3, 1 e-15, Zero).22 | ?- newton::find_root(f1, 1.0, 2.3, 1.0e-15, Zero). 23 23 24 24 Zero = 2.0 25 25 yes 26 | ?- muller::find_root(f1, 1.0, 2.3, 1 e-15, Zero).26 | ?- muller::find_root(f1, 1.0, 2.3, 1.0e-15, Zero). 27 27 28 28 Zero = 2.0 29 29 yes 30 30 31 | ?- bisection::find_root(f2, 1.0, 1.3, 1 e-15, Zero).31 | ?- bisection::find_root(f2, 1.0, 1.3, 1.0e-15, Zero). 32 32 33 33 Zero = 1.25809265664599 34 34 yes 35 35 36 | ?- newton::find_root(f2, 1.0, 1.3, 1 e-15, Zero).36 | ?- newton::find_root(f2, 1.0, 1.3, 1.0e-15, Zero). 37 37 38 38 Zero = 1.25809265664599 39 39 yes 40 40 41 | ?- muller::find_root(f2, 1.0, 1.3, 1 e-15, Zero).41 | ?- muller::find_root(f2, 1.0, 1.3, 1.0e-15, Zero). 42 42 43 43 Zero = 1.25809265664599 … … 47 47 % find the roots of some functions running all methods at once using multi-threading: 48 48 49 | ?- function_root::find_root(f1, 1.0, 2.3, 1 e-15, Zero, Method).49 | ?- function_root::find_root(f1, 1.0, 2.3, 1.0e-15, Zero, Method). 50 50 51 51 Zero = 2.0 … … 53 53 yes 54 54 55 | ?- function_root::find_root(f2, 1.0, 1.3, 1 e-15, Zero, Method).55 | ?- function_root::find_root(f2, 1.0, 1.3, 1.0e-15, Zero, Method). 56 56 57 57 Zero = 1.25809265664599 … … 59 59 yes 60 60 61 | ?- function_root::find_root(f3, 0.0, 3.0, 1 e-15, Zero, Method).61 | ?- function_root::find_root(f3, 0.0, 3.0, 1.0e-15, Zero, Method). 62 62 63 63 Zero = 1.4142135623731 … … 65 65 yes 66 66 67 | ?- function_root::find_root(f4, -1.0, 2.0, 1 e-15, Zero, Method).67 | ?- function_root::find_root(f4, -1.0, 2.0, 1.0e-15, Zero, Method). 68 68 69 69 Zero = -8.88178419700125e-16
