FindInstance
The new function FindInstance gives, at most, the
requested number of different numerical solutions to an equation or
inequality. For problems in which the complete solution is not needed,
finding instances of solutions can be much faster than trying to find
the whole solution set. FindInstance works for all problems
that Reduce can solve fully. It can also find
instances for some problems that Reduce cannot solve.
Example: Comparing the Timing of a Solution with
FindInstance
The following pair of inequalities was used to compare the speed of
finding solutions with FindInstance and Reduce:
The bar chart shows the ratio of timing FindInstance
and Reduce for finding 1-4 real solutions. Note that
while FindInstance is far faster for finding one solution, it
is quicker in this case to find multiple solutions by getting the
general solution using Reduce.
|