Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
ListTools[BinarySearch] - perform a binary search on a list
Calling Sequence
BinarySearch(L, x, f, g)
Parameters
L
-
list
x
anything
f
(optional) procedure, operator, algebraic expression, or list
g
Description
The BinarySearch(L, x) function performs a binary search on list L for element x. List L is assumed to be sorted. If a match is found, the position of the element is returned; otherwise, the value is returned.
In this form of the calling sequence, x must be of type numeric or string and the list should have operands of the same type in ascending order.
If parameter f is specified in the calling sequence, it must be either a procedure or operator where returns true if x precedes y, or a list of the form such that returns true if x precedes y.
If g is specified in the calling sequence, it must be either a procedure or operator where returns true if x and y are equal, or a list of the form such that returns true if x and y are equal.
If g is not included, boolean equality is used to test if two objects are equal.
Examples
See Also
list, ListTools, ListTools[BinaryPlace], sort, type/list, type/numeric, type/string
Download Help Document