Large terrestrial mammals with trunks from Africa and Asia
The elephants are the large mammals forming the family Elephantidae in the order Proboscidea. Three species are currently recognised: the African bush elephant (Loxodonta africana), the African forest elephant (L. cyclotis), and the Asian elephant (Elephas maximus). Elephants are scattered throughout sub-Saharan Africa, South Asia, and Southeast Asia. Elephantidae is the only surviving family of the order Proboscidea; other, now extinct, members of the order include deinotheres, gomphotheres, mammoths, and mastodons.
All elephants have several distinctive features, the most notable of which is a long trunk (also called a proboscis), used for many purposes, particularly breathing, lifting water, and grasping objects. Their incisors grow into tusks, which can serve as weapons and as tools for moving objects and digging. Elephants' large ear flaps help to control their body temperature. Their pillar-like legs can carry their great weight. African elephants have larger ears and concave backs while Asian elephants have smaller ears and convex or level backs.
Elephants are herbivorous and can be found in different habitats including savannahs, forests, deserts, and marshes. They prefer to stay near water. They are considered to be a keystone species due to their impact on their environments. Other animals tend to keep their distance from elephants while predators, such as lions, tigers, hyenas, and any wild dogs, usually target only young elephants (or "calves"). Elephants have a fission–fusion society in which multiple family groups come together to socialise. Females ("cows") tend to live in family groups, which can consist of one female with her calves or several related females with offspring. The groups are led by an individual known as the matriarch, often the oldest cow.
Males ("bulls") leave their family groups when they reach puberty and may live alone or with other males. Adult bulls mostly interact with family groups when looking for a mate and enter a state of increased testosterone and aggression known as musth, which helps them gain dominance and reproductive success. Calves are the centre of attention in their family groups and rely on their mothers for as long as three years. Elephants can live up to 70 years in the wild. They communicate by touch, sight, smell, and sound; elephants use infrasound, and seismic communication over long distances. Elephant intelligence has been compared with that of primates and cetaceans. They appear to have self-awareness and show empathy for dying or dead individuals of their kind.
African elephants are listed as vulnerable by the International Union for Conservation of Nature (IUCN) while the Asian elephant is classed as endangered. One of the biggest threats to elephant populations is the ivory trade, as the animals are poached for their ivory tusks. Other threats to wild elephants include habitat destruction and conflicts with local people. Elephants are used as working animals in Asia. In the past, they were used in war; today, they are often controversially put on display in zoos, or exploited for entertainment in circuses. Elephants are highly recognisable and have been featured in art, folklore, religion, literature, and popular culture.
The word "elephant" is based on the Latin elephas (genitive elephantis) ("elephant"), which is the Latinised form of the Greek ἐλέφας (elephas) (genitive ἐλέφαντος (elephantos)),[1] probably from a non-Indo-European language, likely Phoenician.[2] It is attested in Mycenaean Greek as e-re-pa (genitive e-re-pa-to) in Linear B syllabic script.[3][4] As in Mycenaean Greek, Homer used the Greek word to mean ivory, but after the time of Herodotus, it also referred to the animal.[1] The word "elephant" appears in Middle English as olyfaunt (c.1300) and was borrowed from Old French oliphant (12th century).[2] Loxodonta, the generic name for the African elephants, is Greek for "oblique-sided tooth".[5]
Elephants belong to the family Elephantidae, the sole remaining family within the order Proboscidea which belongs to the superorder Afrotheria. Their closest extant relatives are the sirenians (dugongs and manatees) and the hyraxes, with which they share the clade Paenungulata within the superorder Afrotheria.[7] Elephants and sirenians are further grouped in the clade Tethytheria.[8] Three species of elephants are recognised; the African bush elephant (Loxodonta africana) and forest elephant (Loxodonta cyclotis) of sub-Saharan Africa, and the Asian elephant (Elephas maximus) of South and Southeast Asia.[9] African elephants have larger ears, a concave back, more wrinkled skin, a sloping abdomen, and two finger-like extensions at the tip of the trunk. Asian elephants have smaller ears, a convex or level back, smoother skin, a horizontal abdomen that occasionally sags in the middle and one extension at the tip of the trunk. The looped ridges on the molars are narrower in the Asian elephant while those of the African are more diamond-shaped. The Asian elephant also has dorsal bumps on its head and some patches of depigmentation on its skin.[10]
African bush elephant in Kruger National Park, South Africa African forest elephant in Ivindo National Park, Gabon Asian elephant in Bandipur National Park, IndiaSwedish zoologist Carl Linnaeus first described the genus Elephas and an elephant from Sri Lanka (then known as Ceylon) under the binomial Elephas maximus in 1758.[11] In 1798, Georges Cuvier classified the Indian elephant under the binomial Elephas indicus.[12] Dutch zoologist Coenraad Jacob Temminck described the Sumatran elephant in 1847 under the binomial Elephas sumatranus.[13] English zoologist Frederick Nutter Chasen classified all three as subspecies of the Asian elephant in 1940.[14] Asian elephants vary geographically in their colour and amount of depigmentation. The Sri Lankan elephant (Elephas maximus maximus) inhabits Sri Lanka, the Indian elephant (E. m. indicus) is native to mainland Asia (on the Indian subcontinent and Indochina), and the Sumatran elephant (E. m. sumatranus) is found in Sumatra.[10] One disputed subspecies, the Borneo elephant, lives in northern Borneo and is smaller than all the other subspecies. It has larger ears, a longer tail, and straighter tusks than the typical elephant. Sri Lankan zoologist Paules Edward Pieris Deraniyagala described it in 1950 under the trinomial Elephas maximus borneensis, taking as his type an illustration in National Geographic.[15] It was subsequently subsumed under either E. m. indicus or E. m. sumatranus. Results of a 2003 genetic analysis indicate its ancestors separated from the mainland population about 300,000 years ago.[16] A 2008 study found that Borneo elephants are not indigenous to the island but were brought there before 1521 by the Sultan of Sulu from Java, where elephants are now extinct.[15]
The African elephant was first named by German naturalist Johann Friedrich Blumenbach in 1797 as Elephas africanus.[17] The genus Loxodonta was named by Frédéric Cuvier in 1825.[18] Cuvier spelled it Loxodonte, but in 1827 an anonymous author romanised the spelling to Loxodonta[19]; the International Code of Zoological Nomenclature recognises this as the proper authority.[9] In 1942, 18 subspecies of African elephant were recognised by Henry Fairfield Osborn,[20] but further morphological data has reduced the number of classified subspecies, and by the 1990s, only two were recognised, the savannah or bush elephant (L. a. africana) and the forest elephant (L. a. cyclotis),[21] the latter having been named in 1900 by German zoologist Paul Matschie.[22] Forest elephants have smaller and more rounded ears and thinner and straighter tusks than bush elephants, and are limited in range to the forested areas of western and Central Africa.[23] A 2000 study argued for the elevation of the two forms into separate species (L. africana and L. cyclotis respectively) based on differences in skull morphology.[24] DNA studies published in 2001 and 2007 also suggested they were distinct species[25][26] while studies in 2002 and 2005 concluded that they were the same species.[27][28] Further studies (2010, 2011, 2015) have supported African savannah and forest elephants' status as separate species.[29][30][31] The two species are believed to have diverged 6 million years ago[32] and have been completely genetically isolated for the past 500,000 years.[33] In 2017, DNA sequence analysis showed that L. cyclotis is more closely related to the extinct Palaeoloxodon antiquus, than it is to L. africana, possibly undermining the genus Loxodonta as a whole.[34] Some evidence suggests that elephants of western Africa are a separate species,[35] although this is disputed.[28][30] The pygmy elephants of the Congo Basin, which have been suggested to be a separate species (Loxodonta pumilio) are probably forest elephants whose small size and/or early maturity are due to environmental conditions.[36]
Over 185 extinct members and three major evolutionary radiations of the order Proboscidea have been recorded.[37] The earliest proboscids, the African Eritherium and Phosphatherium of the late Paleocene, heralded the first radiation.[38] The Eocene included Numidotherium, Moeritherium, and Barytherium from Africa. These animals were relatively small and aquatic. Later on, genera such as Phiomia and Palaeomastodon arose; the latter likely inhabited forests and open woodlands. Proboscidean diversity declined during the Oligocene.[39] One notable species of this epoch was Eritreum melakeghebrekristosi of the Horn of Africa, which may have been an ancestor to several later species.[40] The beginning of the Miocene saw the second diversification, with the appearance of the deinotheres and the mammutids. The former were related to Barytherium and lived in Africa and Eurasia,[41] while the latter may have descended from Eritreum[40] and spread to North America.[41]
The second radiation was represented by the emergence of the gomphotheres in the Miocene,[41] which likely evolved from Eritreum[40] and originated in Africa, spreading to every continent except Australia and Antarctica. Members of this group included Gomphotherium and Platybelodon.[41] The third radiation started in the late Miocene and led to the arrival of the elephantids, which descended from, and slowly replaced, the gomphotheres.[42] The African Primelephas gomphotheroides gave rise to Loxodonta, Mammuthus, and Elephas. Loxodonta branched off earliest around the Miocene and Pliocene boundary while Mammuthus and Elephas diverged later during the early Pliocene. Loxodonta remained in Africa while Mammuthus and Elephas spread to Eurasia, and the former reached North America. At the same time, the stegodontids, another proboscidean group descended from gomphotheres, spread throughout Asia, including the Indian subcontinent, China, southeast Asia, and Japan. Mammutids continued to evolve into new species, such as the American mastodon.[43]
At the beginning of the Pleistocene, elephantids experienced a high rate of speciation.[45] The Pleistocene also saw the arrival of Palaeoloxodon namadicus, the largest terrestrial mammal of all time.[46] Loxodonta atlantica became the most common species in northern and southern Africa but was replaced by Elephas iolensis later in the Pleistocene. Only when Elephas disappeared from Africa did Loxodonta become dominant once again, this time in the form of the modern species. Elephas diversified into new species in Asia, such as E. hysudricus and E. platycephus;[47] the latter the likely ancestor of the modern Asian elephant.[45] Mammuthus evolved into several species, including the well-known woolly mammoth.[47] Interbreeding appears to have been common among elephantid species, which in some cases led to species with three ancestral genetic components, such as the straight-tusked elephants.[33] In the Late Pleistocene, most proboscidean species vanished during the Quaternary glaciation which killed off 50% of genera weighing over 5 kg (11 lb) worldwide.[48]
Proboscideans experienced several evolutionary trends, such as an increase in size, which led to many giant species that stood up to 5 m (16 ft) tall.[46] As with other megaherbivores, including the extinct sauropod dinosaurs, the large size of elephants likely developed to allow them to survive on vegetation with low nutritional value.[49] Their limbs grew longer and the feet shorter and broader.[44] The feet were originally plantigrade and developed into a digitigrade stance with cushion pads and the sesamoid bone providing support.[50] Early proboscideans developed longer mandibles and smaller craniums while more derived ones developed shorter mandibles, which shifted the head's centre of gravity. The skull grew larger, especially the cranium, while the neck shortened to provide better support for the skull. The increase in size led to the development and elongation of the mobile trunk to provide reach. The number of premolars, incisors and canines decreased.[44] The cheek teeth (molars and premolars) became larger and more specialized, especially after elephants started to switch from C3-plants to C4-grasses, which caused their teeth to undergo a three-fold increase in teeth height as well as substantial multiplication of lamellae after about five million years ago. Only in the last million years or so did they return to a diet mainly consisting of C3 trees and shrubs.[51][52] The upper second incisors grew into tusks, which varied in shape from straight, to curved (either upward or downward), to spiralled, depending on the species. Some proboscideans developed tusks from their lower incisors.[44] Elephants retain certain features from their aquatic ancestry, such as their middle ear anatomy.[53]
There has been some debate over the relationship of Mammuthus to Loxodonta or Elephas. Some DNA studies suggest Mammuthus is more closely related to the former[54][55] while others point to the latter.[8] However, analysis of the complete mitochondrial genome profile of the woolly mammoth (sequenced in 2005) supports Mammuthus being more closely related to Elephas.[25][29][31][56] Morphological evidence supports Mammuthus and Elephas as sister taxa while comparisons of protein albumin and collagen have concluded that all three genera are equally related to each other.[57] Some scientists believe a cloned mammoth embryo could one day be implanted in an Asian elephant's womb.[58]
Several species of proboscideans lived on islands and experienced insular dwarfism. This occurred primarily during the Pleistocene when some elephant populations became isolated by fluctuating sea levels, although dwarf elephants did exist earlier in the Pliocene. These elephants likely grew smaller on islands due to a lack of large or viable predator populations and limited resources. By contrast, small mammals such as rodents develop gigantism in these conditions. Dwarf proboscideans are known to have lived in Indonesia, the Channel Islands of California, and several islands of the Mediterranean.[59]
Elephas celebensis of Sulawesi is believed to have descended from Elephas planifrons. Elephas falconeri of Malta and Sicily was only 1 m (3 ft) and had probably evolved from the straight-tusked elephant. Other descendants of the straight-tusked elephant existed in Cyprus. Dwarf elephants of uncertain descent lived in Crete, Cyclades, and Dodecanese while dwarf mammoths are known to have lived in Sardinia.[59] The Columbian mammoth colonised the Channel Islands and evolved into the pygmy mammoth. This species reached a height of 1.2–1.8 m (4–6 ft) and weighed 200–2,000 kg (440–4,410 lb). A population of small woolly mammoths survived on Wrangel Island, now 140 km (87 mi) north of the Siberian coast, as recently as 4,000 years ago.[59] After their discovery in 1993, they were considered dwarf mammoths.[60] This classification has been re-evaluated and since the Second International Mammoth Conference in 1999, these animals are no longer considered to be true "dwarf mammoths".[61]
Elephants are the largest living terrestrial animals. African bush elephants are the largest species, with males typically being 3.20 m (10.50 ft) tall at the shoulder and 6,000 kg (13,200 lb) while females stand 2.60 m (8.53 ft) tall at the shoulder with a body mass of 3,000 kg (6,600 lb). Male Asian elephants are usually about 2.75 m (9.02 ft) tall at the shoulder and 4,000 kg (8,800 lb) whereas females are 2.40 m (7.87 ft) tall at the shoulder and 2,700 kg (6,000 lb). African forest elephants are the smallest species, usually being around 2.20 m (7.22 ft) tall at the shoulder and 2,000 kg (4,400 lb). Male African elephants are typically 23% taller than females, whereas male Asian elephants are only around 15% taller than females.[46] The skeleton of the elephant is made up of 326–351 bones.[62] The vertebrae are connected by tight joints, which limit the backbone's flexibility. African elephants have 21 pairs of ribs, while Asian elephants have 19 or 20 pairs.[63]
An elephant's skull is resilient enough to withstand the forces generated by the leverage of the tusks and head-to-head collisions. The back of the skull is flattened and spread out, creating arches that protect the brain in every direction.[64] The skull contains air cavities (sinuses) that reduce the weight of the skull while maintaining overall strength. These cavities give the inside of the skull a honeycomb-like appearance. The cranium is particularly large and provides enough room for the attachment of muscles to support the entire head. The lower jaw is solid and heavy.[62] Because of the size of the head, the neck is relatively short to provide better support.[44] Lacking a lacrimal apparatus, the eye relies on the harderian gland to keep it moist. A durable nictitating membrane protects the eye globe. The animal's field of vision is compromised by the location and limited mobility of the eyes.[65] Elephants are considered dichromats[66] and they can see well in dim light but not in bright light.[67] The core body temperature averages 35.9 °C (96.6 °F), similar to that of a human. Like all mammals, an elephant can raise or lower its temperature a few degrees from the average in response to extreme environmental conditions.[68]
Elephant ears have thick bases with thin tips. The ear flaps, or pinnae, contain numerous blood vessels called capillaries. Warm blood flows into the capillaries, helping to release excess body heat into the environment. This occurs when the pinnae are still, and the animal can enhance the effect by flapping them. Larger ear surfaces contain more capillaries, and more heat can be released. Of all the elephants, African bush elephants live in the hottest climates, and have the largest ear flaps.[69] Elephants are capable of hearing at low frequencies and are most sensitive at 1 kHz.[70]
African bush elephant spraying water on its bodyThe trunk, or proboscis, is a fusion of the nose and upper lip, although in early fetal life, the upper lip and trunk are separated.[44] The trunk is elongated and specialised to become the elephant's most important and versatile appendage. It contains up to 150,000 separate muscle fascicles, with no bone and little fat. These paired muscles consist of two major types: superficial (surface) and internal. The former are divided into dorsals, ventrals, and laterals while the latter are divided into transverse and radiating muscles. The muscles of the trunk connect to a bony opening in the skull. The nasal septum is composed of tiny muscle units that stretch horizontally between the nostrils. Cartilage divides the nostrils at the base.[71] As a muscular hydrostat, the trunk moves by precisely coordinated muscle contractions. The muscles work both with and against each other. A unique proboscis nerve – formed by the maxillary and facial nerves – runs along both sides of the trunk.[72]
African bush elephant with its trunk raised, a behaviour often adopted when trumpeting Asian elephant drinking water with trunkElephant trunks have multiple functions, including breathing, olfaction, touching, grasping, and sound production.[44] The animal's sense of smell may be four times as sensitive as that of a bloodhound.[73] The trunk's ability to make powerful twisting and coiling movements allows it to collect food, wrestle with other elephants,[74] and lift up to 350 kg (770 lb).[44] It can be used for delicate tasks, such as wiping an eye and checking an orifice,[74] and is capable of cracking a peanut shell without breaking the seed.[44] With its trunk, an elephant can reach items at heights of up to 7 m (23 ft) and dig for water under mud or sand.[74] Individuals may show lateral preference when grasping with their trunks: some prefer to twist them to the left, others to the right.[72] An adult Asian elephant is capable of holding 8.5 L (2.2 US gal) of water in its trunk.[71] They will also spray dust or grass on themselves.[44] When underwater, the elephant uses its trunk as a snorkel.[53]
The African elephant has two finger-like extensions at the tip of the trunk that allow it to grasp and bring food to its mouth. The Asian elephant has only one, and relies more on wrapping around a food item and squeezing it into its mouth.[10] Asian elephants have more muscle coordination and can perform more complex tasks.[71] Losing the trunk would be detrimental to an elephant's survival,[44] although in rare cases, individuals have survived with shortened ones. One elephant has been observed to graze by kneeling on its front legs, raising on its hind legs and taking in grass with its lips.[71] Floppy trunk syndrome is a condition of trunk paralysis in African bush elephants caused by the degradation of the peripheral nerves and muscles beginning at the tip.[75]
Elephants usually have 26 teeth: the incisors, known as the tusks, 12 deciduous premolars, and 12 molars. Unlike most mammals, which grow baby teeth and then replace them with a single permanent set of adult teeth, elephants are polyphyodonts that have cycles of tooth rotation throughout their lives. The chewing teeth are replaced six times in a typical elephant's lifetime. Teeth are not replaced by new ones emerging from the jaws vertically as in most mammals. Instead, new teeth grow in at the back of the mouth and move forward to push out the old ones. The first chewing tooth on each side of the jaw falls out when the elephant is two to three years old. The second set of chewing teeth falls out at four to six years old. The third set falls out at 9–15 years of age, and set four lasts until 18–28 years of age. The fifth set of teeth falls out at the early 40s. The sixth (and usually final) set must last the elephant the rest of its life. Elephant teeth have loop-shaped dental ridges, which are thicker and more diamond-shaped in African elephants.[76]
The tusks of an elephant are modified second incisors in the upper jaw. They replace deciduous milk teeth at 6–12 months of age and grow continuously at about 17 cm (7 in) a year.  The dentine is known as ivory and its cross-section consists of crisscrossing line patterns, known as "engine turning", which create diamond-shaped areas. As a piece of living tissue, a tusk is relatively soft; it is as hard as the mineral calcite. Much of the tusk can be seen outside; the rest is in a socket in the skull. At least one-third of the tusk contains the pulp and some have nerves stretching to the tip. Thus it would be difficult to remove it without harming the animal. When removed, ivory begins to dry up and crack if not kept cool and moist. Tusks serve multiple purposes. They are used for digging for water, salt, and roots; debarking or marking trees; and for moving trees and branches when clearing a path. When fighting, they are used to attack and defend, and to protect the trunk.[77]
Like humans, who are typically right- or left-handed, elephants are usually right- or left-tusked. The dominant tusk, called the master tusk, is generally more worn down, as it is shorter with a rounder tip. For the African elephants, tusks are present in both males and females, and are around the same length in both sexes, reaching up to 3 m (10 ft),[77] but those of males tend to be thicker.[78] In earlier times, elephant tusks weighing over 200 pounds (more than 90 kg) were not uncommon, though it is rare today to see any over 100 pounds (45 kg).[79]
In the Asian species, only the males have large tusks. Female Asians have very small tusks, or none at all.[77] Tuskless males exist and are particularly common among Sri Lankan elephants.[80] Asian males can have tusks as long as Africans', but they are usually slimmer and lighter; the largest recorded was 3.02 m (10 ft) long and weighed 39 kg (86 lb). Hunting for elephant ivory in Africa[81] and Asia[82] has led to natural selection for shorter tusks[83][84] and tusklessness.[85][86]
An elephant's skin is generally very tough, at 2.5 cm (1 in) thick on the back and parts of the head. The skin around the mouth, anus, and inside of the ear is considerably thinner. Elephants typically have grey skin, but African elephants look brown or reddish after wallowing in coloured mud. Asian elephants have some patches of depigmentation, particularly on the forehead and ears and the areas around them. Calves have brownish or reddish hair, especially on the head and back. As elephants mature, their hair darkens and becomes sparser, but dense concentrations of hair and bristles remain on the end of the tail as well as the chin, genitals and the areas around the eyes and ear openings. Normally the skin of an Asian elephant is covered with more hair than its African counterpart.[87]
An African forest elephant covering its skin with mudAn elephant uses mud as a sunscreen, protecting its skin from ultraviolet light. Although tough, an elephant's skin is very sensitive. Without regular mud baths to protect it from burning, insect bites and moisture loss, an elephant's skin suffers serious damage. After bathing, the elephant will usually use its trunk to blow dust onto its body and this dries into a protective crust. Elephants have difficulty releasing heat through the skin because of their low surface-area-to-volume ratio, which is many times smaller than that of a human. They have even been observed lifting up their legs, presumably in an effort to expose their soles to the air.[87]
To support the animal's weight, an elephant's limbs are positioned more vertically under the body than in most other mammals. The long bones of the limbs have cancellous bone in place of medullary cavities. This strengthens the bones while still allowing haematopoiesis.[88] Both the front and hind limbs can support an elephant's weight, although 60% is borne by the front.[89] Since the limb bones are placed on top of each other and under the body, an elephant can stand still for long periods of time without using much energy. Elephants are incapable of rotating their front legs, as the ulna and radius are fixed in pronation; the "palm" of the manus faces backward.[88] The pronator quadratus and the pronator teres are either reduced or absent.[90] The circular feet of an elephant have soft tissues or "cushion pads" beneath the manus or pes, which distribute the weight of the animal.[89] They appear to have a sesamoid, an extra "toe" similar in placement to a giant panda's extra "thumb", that also helps in weight distribution.[91] As many as five toenails can be found on both the front and hind feet.[10]
Elephants can move both forwards and backwards, but cannot trot, jump, or gallop. They use only two gaits when moving on land: the walk and a faster gait similar to running.[88] In walking, the legs act as pendulums, with the hips and shoulders rising and falling while the foot is planted on the ground. With no "aerial phase", the fast gait does not meet all the criteria of running, although the elephant uses its legs much like other running animals, with the hips and shoulders falling and then rising while the feet are on the ground.[92] Fast-moving elephants appear to 'run' with their front legs, but 'walk' with their hind legs and can reach a top speed of 25 km/h (16 mph).[93] At this speed, most other quadrupeds are well into a gallop, even accounting for leg length. Spring-like kinetics could explain the difference between the motion of elephants and other animals.[93] During locomotion, the cushion pads expand and contract, and reduce both the pain and noise that would come from a very heavy animal moving.[89] Elephants are capable swimmers. They have been recorded swimming for up to six hours without touching the bottom, and have travelled as far as 48 km (30 mi) at a stretch and at speeds of up to 2.1 km/h (1 mph).[94]
The brain of an elephant weighs 4.5–5.5 kg (10–12 lb) compared to 1.6 kg (4 lb) for a human brain. While the elephant brain is larger overall, it is proportionally smaller. At birth, an elephant's brain already weighs 30–40% of its adult weight. The cerebrum and cerebellum are well developed, and the temporal lobes are so large that they bulge out laterally.[68] The throat of an elephant appears to contain a pouch where it can store water for later use.[44]
The heart of an elephant weighs 12–21 kg (26–46 lb). It has a double-pointed apex, an unusual trait among mammals.[68] In addition, the ventricles separate near the top of the heart, a trait they share with sirenians.[95] When standing, the elephant's heart beats approximately 30 times per minute. Unlike many other animals, the heart rate speeds up by 8 to 10 beats per minute when the elephant is lying down.[96] The blood vessels in most of the body are wide and thick and can withstand high blood pressures.[95] The lungs are attached to the diaphragm, and breathing relies mainly on the diaphragm rather than the expansion of the ribcage.[68] Connective tissue exists in place of the pleural cavity. This may allow the animal to deal with the pressure differences when its body is underwater and its trunk is breaking the surface for air,[53] although this explanation has been questioned.[97] Another possible function for this adaptation is that it helps the animal suck up water through the trunk.[53] Elephants inhale mostly through the trunk, although some air goes through the mouth. They have a hindgut fermentation system, and their large and small intestines together reach 35 m (115 ft) in length. The majority of an elephant's food intake goes undigested despite the process lasting up to a day.[68]
A male elephant's testes are located internally near the kidneys.[98] The elephant's penis can reach a length of 100 cm (39 in) and a diameter of 16 cm (6 in) at the base. It is S-shaped when fully erect and has a Y-shaped orifice. The female has a well-developed clitoris at up to 40 cm (16 in). The vulva is located between the hind legs instead of near the tail as in most mammals. Determining pregnancy status can be difficult due to the animal's large abdominal cavity. The female's mammary glands occupy the space between the front legs, which puts the suckling calf within reach of the female's trunk.[68] Elephants have a unique organ, the temporal gland, located in both sides of the head. Females have also been observed with secretions from the temporal glands.[73]
The African bush elephant can be found in habitats as diverse as dry savannahs, deserts, marshes, and lake shores, and in elevations from sea level to mountain areas above the snow line. Forest elephants mainly live in equatorial forests but will enter gallery forests and ecotones between forests and savannahs.[23] Asian elephants prefer areas with a mix of grasses, low woody plants, and trees, primarily inhabiting dry thorn-scrub forests in southern India and Sri Lanka and evergreen forests in Malaya.[100] Elephants are herbivorous and will eat leaves, twigs, fruit, bark, grass and roots.[23] They are born with sterile intestines and require bacteria obtained from their mother's feces to digest vegetation.[101] African elephants are mostly browsers while Asian elephants are mainly grazers. They can consume as much as 150 kg (330 lb) of food and 40 L (11 US gal) of water in a day. Elephants tend to stay near water sources.[23] Major feeding bouts take place in the morning, afternoon and night. At midday, elephants rest under trees and may doze off while standing. Sleeping occurs at night while the animal is lying down.[88][102] Elephants average 3–4 hours of sleep per day.[103] Both males and family groups typically move 10–20 km (6–12 mi) a day, but distances as far as 90–180 km (56–112 mi) have been recorded in the Etosha region of Namibia.[104] Elephants go on seasonal migrations in search of food, water, minerals, and mates. At Chobe National Park, Botswana, herds travel 325 km (202 mi) to visit the river when the local waterholes dry up.[105][106]
Because of their large size, elephants have a huge impact on their environments and are considered keystone species. Their habit of uprooting trees and undergrowth can transform savannah into grasslands; when they dig for water during drought, they create waterholes that can be used by other animals. They can enlarge waterholes when they bathe and wallow in them. At Mount Elgon, elephants excavate caves that are used by ungulates, hyraxes, bats, birds and insects.[107] Elephants are important seed dispersers; African forest elephants ingest and defecate seeds, with either no effect or a positive effect on germination. The seeds are typically dispersed in large amounts over great distances.[108] In Asian forests, large seeds require giant herbivores like elephants and rhinoceros for transport and dispersal. This ecological niche cannot be filled by the next largest herbivore, the tapir.[109] Because most of the food elephants eat goes undigested, their dung can provide food for other animals, such as dung beetles and monkeys.[107] Elephants can have a negative impact on ecosystems. At Murchison Falls National Park in Uganda, the overabundance of elephants has threatened several species of small birds that depend on woodlands. Their weight can compact the soil, which causes the rain to run off, leading to erosion.[102]
Forest elephant in habitat. It is considered to be an important seed disperser.Elephants typically coexist peacefully with other herbivores, which will usually stay out of their way. Some aggressive interactions between elephants and rhinoceros have been recorded. At Aberdare National Park, Kenya, a rhino attacked an elephant calf and was killed by the other elephants in the group.[102] At Hluhluwe–Umfolozi Game Reserve, South Africa, introduced young orphan elephants went on a killing spree that claimed the lives of 36 rhinos during the 1990s, but ended with the introduction of older males.[110] The size of adult elephants makes them nearly invulnerable to predators,[100] though there are rare reports of adult elephants falling prey to tigers.[111] Calves may be preyed on by lions, spotted hyenas, and wild dogs in Africa[112] and tigers in Asia.[100] The lions of Savuti, Botswana, have adapted to hunting juvenile elephants during the dry season, and a pride of 30 lions has been recorded killing juvenile individuals between the ages of four and eleven years.[113] Elephants appear to distinguish between the growls of larger predators like tigers and smaller predators like leopards (which have not been recorded killing calves); they react to leopards less fearfully and more aggressively.[114] Elephants tend to have high numbers of parasites, particularly nematodes, compared to other herbivores. This is due to lower predation pressures that would otherwise kill off many of the individuals with significant parasite loads.[115]
Female elephants spend their entire lives in tight-knit matrilineal family groups, some of which are made up of more than ten members, including three pairs of mothers with offspring, and are led by the matriarch which is often the eldest female.[116] She remains leader of the group until death[112] or if she no longer has the energy for the role;[117] a study on zoo elephants showed that when the matriarch died, the levels of faecal corticosterone ('stress hormone') dramatically increased in the surviving elephants.[118] When her tenure is over, the matriarch's eldest daughter takes her place; this occurs even if her sister is present.[112] The older matriarchs tend to be more effective decision-makers.[119]
The social circle of the female elephant does not necessarily end with the small family unit. In the case of elephants in Amboseli National Park, Kenya, a female's life involves interaction with other families, clans, and subpopulations. Families may associate and bond with each other, forming what are known as bond groups. These are typically made of two family groups,[116] which may be closely related due to previously being part of the same family group which split after becoming too large for the available resources.[120] During the dry season, elephant families may cluster together and form another level of social organisation known as the clan. Groups within these clans do not form strong bonds, but they defend their dry-season ranges against other clans. There are typically nine groups in a clan. The Amboseli elephant population is further divided into the "central" and "peripheral" subpopulations.[116]
Some elephant populations in India and Sri Lanka have similar basic social organisations. There appear to be cohesive family units and loose aggregations. They have been observed to have "nursing units" and "juvenile-care units". In southern India, elephant populations may contain family groups, bond groups and possibly clans. Family groups tend to be small, consisting of one or two adult females and their offspring. A group containing more than two adult females plus offspring is known as a "joint family". Malay elephant populations have even smaller family units, and do not have any social organisation higher than a family or bond group. Groups of African forest elephants typically consist of one adult female with one to three offspring. These groups appear to interact with each other, especially at forest clearings.[116]
Lone bull: Adult male elephants spend much of their time alone or in single-sex groupsThe social life of the adult male is very different. As he matures, a male spends more time at the edge of his group and associates with outside males or even other families. At Amboseli, young males spend over 80% of their time away from their families when they are 14–15. When males permanently leave, they either live alone or with other males. The former is typical of bulls in dense forests. Asian males are usually solitary, but occasionally form groups of two or more individuals; the largest consisted of seven bulls. Larger bull groups consisting of over 10 members occur only among African bush elephants, the largest of which numbered up to 144 individuals.[121] These elephants can be quite sociable when not competing for dominance or mates, and will form long-term relationships.[122] A dominance hierarchy exists among males, whether they range socially or solitarily. Dominance depends on the age, size and sexual condition,[121] and when in groups, males follow the lead of the dominant bull. Young bulls may seek out the company and leadership of older, more experienced males,[122] whose presence appears to control their aggression and prevent them from exhibiting "deviant" behaviour.[123] Adult males and females come together for reproduction. Bulls associate with family groups if an oestrous cow is present.[121]
Male elephants sparringAdult males enter a state of increased testosterone known as musth. In a population in southern India, males first enter musth at the age of 15, but it is not very intense until they are older than 25. At Amboseli, bulls under 24 do not go into musth, while half of those aged 25–35 and all those over 35 do. Young bulls appear to enter musth during the dry season (January–May), while older bulls go through it during the wet season (June–December). The main characteristic of a bull's musth is a fluid secreted from the temporal gland that runs down the side of his face.  Behaviours associated with musth include walking with the head held high and swinging, picking at the ground with the tusks, marking, rumbling and waving only one ear at a time. This can last from a day to four months.[124]
Males become extremely aggressive during musth. Size is the determining factor in agonistic encounters when the individuals have the same condition. In contests between musth and non-musth individuals, musth bulls win the majority of the time, even when the non-musth bull is larger. A male may stop showing signs of musth when he encounters a musth male of higher rank. Those of equal rank tend to avoid each other. Agonistic encounters typically consist of threat displays, chases, and minor sparring with the tusks. Serious fights are rare.[124]
Elephants are polygynous breeders,[125] and copulations are most frequent during the peak of the wet season.[126] A cow in oestrus releases chemical signals (pheromones) in her urine and vaginal secretions to signal her readiness to mate. A bull will follow a potential mate and assess her condition with the flehmen response, which requires the male to collect a chemical sample with his trunk and bring it to the vomeronasal organ.[127][128] The oestrous cycle of a cow lasts 14–16 weeks with a 4–6-week follicular phase and an 8- to 10-week luteal phase. While most mammals have one surge of luteinizing hormone during the follicular phase, elephants have two. The first (or anovulatory) surge, could signal to males that the female is in oestrus by changing her scent, but ovulation does not occur until the second (or ovulatory) surge.[129] Fertility rates in cows decline around 45–50 years of age.[117]
Bulls engage in a behaviour known as mate-guarding, where they follow oestrous females and defend them from other males.[130] Most mate-guarding is done by musth males, and females actively seek to be guarded by them, particularly older ones.[131] Thus these bulls have more reproductive success.[121] Musth appears to signal to females the condition of the male, as weak or injured males do not have normal musths.[132] For young females, the approach of an older bull can be intimidating, so her relatives stay nearby to provide support and reassurance.[133] During copulation, the male lays his trunk over the female's back.[134] The penis is very mobile, being able to move independently of the pelvis.[135] Prior to mounting, it curves forward and upward. Copulation lasts about 45 seconds and does not involve pelvic thrusting or ejaculatory pause.[136] Elephant sperm must swim close to 2 m (6.6 ft) to reach the egg. By comparison, human sperm has to swim around only 76.2 mm (3.00 in).[137]
Homosexual behaviour is frequent in both sexes. As in heterosexual interactions, this involves mounting. Male elephants sometimes stimulate each other by playfighting and "championships" may form between old bulls and younger males. Female same-sex behaviours have been documented only in captivity where they are known to masturbate one another with their trunks.[138]
Gestation in elephants typically lasts around two years with interbirth intervals usually lasting four to five years. Births tend to take place during the wet season.[139] Calves are born 85 cm (33 in) tall and weigh around 120 kg (260 lb).[133] Typically, only a single young is born, but twins sometimes occur.[140][141] The relatively long pregnancy is maintained by five corpus luteums (as opposed to one in most mammals) and gives the foetus more time to develop, particularly the brain and trunk.[140] As such, newborn elephants are precocial and quickly stand and walk to follow their mother and family herd.[142] A new calf is usually the centre of attention for herd members. Adults and most of the other young will gather around the newborn, touching and caressing it with their trunks. For the first few days, the mother is intolerant of other herd members near her young. Alloparenting – where a calf is cared for by someone other than its mother – takes place in some family groups. Allomothers are typically two to twelve years old.[133] When a predator is near, the family group gathers together with the calves in the centre.[143]
For the first few days, the newborn is unsteady on its feet, and needs the support of its mother. It relies on touch, smell, and hearing, as its eyesight is poor. It has little precise control over its trunk, which wiggles around and may cause it to trip. By its second week of life, the calf can walk more firmly and has more control over its trunk. After its first month, a calf can pick up, hold, and put objects in its mouth, but cannot suck water through the trunk and must drink directly through the mouth. It is still dependent on its mother and keeps close to her.[142]
For its first three months, a calf relies entirely on milk from its mother for nutrition, after which it begins to forage for vegetation and can use its trunk to collect water. At the same time, improvements in lip and leg coordination occur. Calves continue to suckle at the same rate as before until their sixth month, after which they become more independent when feeding. By nine months, mouth, trunk and foot coordination is perfected. After a year, a calf's abilities to groom, drink, and feed itself are fully developed. It still needs its mother for nutrition and protection from predators for at least another year. Suckling bouts tend to last 2–4 min/hr for a calf younger than a year and it continues to suckle until it reaches three years of age or older. Suckling after two years may serve to maintain growth rate, body condition and reproductive ability.[142]
Play behaviour in calves differs between the sexes; females run or chase each other while males play-fight. The former are sexually mature by the age of nine years[133] while the latter become mature around 14–15 years.[121] Adulthood starts at about 18 years of age in both sexes.[144][145] Elephants have long lifespans, reaching 60–70 years of age.[76] Lin Wang, a captive male Asian elephant, lived for 86 years.[146]
Touching is an important form of communication among elephants. Individuals greet each other by stroking or wrapping their trunks; the latter also occurs during mild competition. Older elephants use trunk-slaps, kicks, and shoves to discipline younger ones. Individuals of any age and sex will touch each other's mouths, temporal glands, and genitals, particularly during meetings or when excited. This allows individuals to pick up chemical cues. Touching is especially important for mother–calf communication. When moving, elephant mothers will touch their calves with their trunks or feet when side-by-side or with their tails if the calf is behind them. If a calf wants to rest, it will press against its mother's front legs and when it wants to suckle, it will touch her breast or leg.[147]
Visual displays mostly occur in agonistic situations. Elephants will try to appear more threatening by raising their heads and spreading their ears. They may add to the display by shaking their heads and snapping their ears, as well as throwing dust and vegetation. They are usually bluffing when performing these actions. Excited elephants may raise their trunks. Submissive ones will lower their heads and trunks, as well as flatten their ears against their necks, while those that accept a challenge will position their ears in a V shape.[148]
Elephants produce several sounds, usually through the larynx, though some may be modified by the trunk.[149] Perhaps the most well known call is the trumpet which is made by blowing through the trunk. Trumpeting is made during excitement, distress or aggression.[136][149] Fighting elephants may roar or squeal, and wounded ones may bellow.[150] Rumbles are produced during mild arousal[151] and some appear to be infrasonic.[152] Infrasonic calls are important, particularly for long-distance communication,[149] in both Asian and African elephants. For Asian elephants, these calls have a frequency of 14–24 Hz, with sound pressure levels of 85–90 dB and last 10–15 seconds.[152] For African elephants, calls range from 15–35 Hz with sound pressure levels as high as 117 dB, allowing communication for many kilometres, with a possible maximum range of around 10 km (6 mi).[153]
Play media Rumble visualised with acoustic cameraAt Amboseli, several different infrasonic calls have been identified. A greeting rumble is emitted by members of a family group after having been separated for several hours. Contact calls are soft, unmodulated sounds made by individuals that have been separated from their group and may be responded to with a "contact answer" call that starts out loud, but becomes softer. A "let's go" soft rumble is emitted by the matriarch to signal to the other herd members that it is time to move to another spot. Bulls in musth emit a distinctive, low-frequency pulsated rumble nicknamed the "motorcycle". Musth rumbles may be answered by the "female chorus", a low-frequency, modulated chorus produced by several cows. A loud postcopulatory call may be made by an oestrous cow after mating. When a cow has mated, her family may produce calls of excitement known as the "mating pandemonium".[151]
Elephants are known to communicate with seismics, vibrations produced by impacts on the earth's surface or acoustical waves that travel through it. They appear to rely on their leg and shoulder bones to transmit the signals to the middle ear. When detecting seismic signals, the animals lean forward and put more weight on their larger front feet; this is known as the "freezing behaviour". Elephants possess several adaptations suited for seismic communication. The cushion pads of the feet contain cartilaginous nodes and have similarities to the acoustic fat found in marine mammals like toothed whales and sirenians. A unique sphincter-like muscle around the ear canal constricts the passageway, thereby dampening acoustic signals and allowing the animal to hear more seismic signals.[154] Elephants appear to use seismics for a number of purposes. An individual running or mock charging can create seismic signals that can be heard at great distances.[155] When detecting the seismics of an alarm call signalling danger from predators, elephants enter a defensive posture and family groups will pack together. Seismic waveforms produced by locomotion appear to travel distances of up to 32 km (20 mi) while those from vocalisations travel 16 km (10 mi).[156]
Elephants exhibit mirror self-recognition, an indication of self-awareness and cognition that has also been demonstrated in some apes and dolphins.[157] One study of a captive female Asian elephant suggested the animal was capable of learning and distinguishing between several visual and some acoustic discrimination pairs. This individual was even able to score a high accuracy rating when re-tested with the same visual pairs a year later.[158] Elephants are among the species known to use tools. An Asian elephant has been observed modifying branches and using them as flyswatters.[159] Tool modification by these animals is not as advanced as that of chimpanzees. Elephants are popularly thought of as having an excellent memory. This could have a factual basis; they possibly have cognitive maps to allow them to remember large-scale spaces over long periods of time. Individuals appear to be able to keep track of the current location of their family members.[67]
Scientists debate the extent to which elephants feel emotion. They appear to show interest in the bones of their own kind, regardless of whether they are related.[160] As with chimps and dolphins, a dying or dead elephant may elicit attention and aid from others, including those from other groups. This has been interpreted as expressing "concern";[161] however, others would dispute such an interpretation as being anthropomorphic;[162][163] the Oxford Companion to Animal Behaviour (1987) advised that "one is well advised to study the behaviour rather than attempting to get at any underlying emotion".[164]
African elephants were listed as vulnerable by the International Union for Conservation of Nature (IUCN) in 2008, with no independent assessment of the conservation status of the two forms.[165] In 1979, Africa had an estimated minimum population of 1.3 million elephants, with a possible upper limit of 3.0 million. By 1989, the population was estimated to be 609,000; with 277,000 in Central Africa, 110,000 in eastern Africa, 204,000 in southern Africa, and 19,000 in western Africa. About 214,000 elephants were estimated to live in the rainforests, fewer than had previously been thought. From 1977 to 1989, elephant populations declined by 74% in East Africa. After 1987, losses in elephant numbers accelerated, and savannah populations from Cameroon to Somalia experienced a decline of 80%. African forest elephants had a total loss of 43%. Population trends in southern Africa were mixed, with anecdotal reports of losses in Zambia, Mozambique and Angola while populations grew in Botswana and Zimbabwe and were stable in South Africa.[166] Conversely, studies in 2005 and 2007 found populations in eastern and southern Africa were increasing by an average annual rate of 4.0%.[165] Due to the vast areas involved, assessing the total African elephant population remains difficult and involves an element of guesswork. The IUCN estimates a total of around 440,000 individuals for 2012 while TRAFFIC estimates as many as 55 are poached daily.[167][168]
African elephants receive at least some legal protection in every country where they are found, but 70% of their range exists outside protected areas. Successful conservation efforts in certain areas have led to high population densities. As of 2008, local numbers were controlled by contraception or translocation. Large-scale cullings ceased in 1988, when Zimbabwe abandoned the practice. In 1989, the African elephant was listed under Appendix I by the Convention on International Trade in Endangered Species of Wild Fauna and Flora (CITES), making trade illegal. Appendix II status (which allows restricted trade) was given to elephants in Botswana, Namibia, and Zimbabwe in 1997 and South Africa in 2000. In some countries, sport hunting of the animals is legal; Botswana, Cameroon, Gabon, Mozambique, Namibia, South Africa, Tanzania, Zambia, and Zimbabwe have CITES export quotas for elephant trophies.[165] In June 2016, the First Lady of Kenya, Margaret Kenyatta, helped launch the East Africa Grass-Root Elephant Education Campaign Walk, organised by elephant conservationist Jim Nyamu. The event was conducted to raise awareness of the value of elephants and rhinos, to help mitigate human-elephant conflicts, and to promote anti-poaching activities.[169]
In 2008, the IUCN listed the Asian elephant as endangered due to a 50% population decline over the past 60–75 years[170] while CITES lists the species under Appendix I.[170] Asian elephants once ranged from Syria and Iraq (the subspecies Elephas maximus asurus), to China (up to the Yellow River)[171] and Java. It is now extinct in these areas,[170] and the current range of Asian elephants is highly fragmented.[171] The total population of Asian elephants is estimated to be around 40,000–50,000, although this may be a loose estimate. It is likely that around half of the population is in India. Although Asian elephants are declining in numbers overall, particularly in Southeast Asia, the population in the Western Ghats appears to be increasing.[170]
The poaching of elephants for their ivory, meat and hides has been one of the major threats to their existence.[170] Historically, numerous cultures made ornaments and other works of art from elephant ivory, and its use rivalled that of gold.[172] The ivory trade contributed to the African elephant population decline in the late 20th century.[165] This prompted international bans on ivory imports, starting with the United States in June 1989, and followed by bans in other North American countries, western European countries, and Japan.[172] Around the same time, Kenya destroyed all its ivory stocks.[173] CITES approved an international ban on ivory that went into effect in January 1990. Following the bans, unemployment rose in India and China, where the ivory industry was important economically. By contrast, Japan and Hong Kong, which were also part of the industry, were able to adapt and were not badly affected.[172] Zimbabwe, Botswana, Namibia, Zambia, and Malawi wanted to continue the ivory trade and were allowed to, since their local elephant populations were healthy, but only if their supplies were from elephants that had been culled or died of natural causes.[173]
The ban allowed the elephant to recover in parts of Africa.[172] In January 2012, 650 elephants in Bouba Njida National Park, Cameroon, were killed by Chadian raiders.[174] This has been called "one of the worst concentrated killings" since the ivory ban.[173] Asian elephants are potentially less vulnerable to the ivory trade, as females usually lack tusks. Still, members of the species have been killed for their ivory in some areas, such as Periyar National Park in India.[170] China was the biggest market for poached ivory but announced they would phase out the legal domestic manufacture and sale of ivory products in May 2015, and in September 2015, China and the United States said "they would enact a nearly complete ban on the import and export of ivory" due to causes of extinction.[175]
Other threats to elephants include habitat destruction and fragmentation.[165] The Asian elephant lives in areas with some of the highest human populations. Because they need larger amounts of land than other sympatric terrestrial mammals, they are the first to be affected by human encroachment. In extreme cases, elephants may be confined to small islands of forest among human-dominated landscapes. Elephants cannot coexist with humans in agricultural areas due to their size and food requirements. Elephants commonly trample and consume crops, which contributes to conflicts with humans, and both elephants and humans have died by the hundreds as a result. Mitigating these conflicts is important for conservation.[170] One proposed solution is the provision of ‘urban corridors’ which allow the animals access to key areas.[176]
Elephants have been working animals since at least the Indus Valley Civilization[177] and continue to be used in modern times. There were 13,000–16,500 working elephants employed in Asia in 2000. These animals are typically captured from the wild when they are 10–20 years old when they can be trained quickly and easily, and will have a longer working life.[178] They were traditionally captured with traps and lassos, but since 1950, tranquillisers have been used.[179]
Individuals of the Asian species have been often trained as working animals. Asian elephants perform tasks such as hauling loads into remote areas, moving logs to rivers and roads, transporting tourists around national parks, pulling wagons, and leading religious processions.[178] In northern Thailand, the animals are used to digest coffee beans for Black Ivory coffee.[180] They are valued over mechanised tools because they can work in relatively deep water, require relatively little maintenance, need only vegetation and water as fuel and can be trained to memorise specific tasks. Elephants can be trained to respond to over 30 commands.[178] Musth bulls can be difficult and dangerous to work with and are chained and semi-starved until the condition passes.[181] In India, many working elephants are alleged to have been subject to abuse. They and other captive elephants are thus protected under The Prevention of Cruelty to Animals Act of 1960.[182]
In both Myanmar and Thailand, deforestation and other economic factors have resulted in sizable populations of unemployed elephants resulting in health problems for the elephants themselves as well as economic and safety problems for the people amongst whom they live.[183][184]
The practice of working elephants has also been attempted in Africa. The taming of African elephants in the Belgian Congo began by decree of Leopold II of Belgium during the 19th century and continues to the present with the Api Elephant Domestication Centre.[185]
Historically, elephants were considered formidable instruments of war. They were equipped with armour to protect their sides, and their tusks were given sharp points of iron or brass if they were large enough. War elephants were trained to grasp an enemy soldier and toss him to the person riding on them or to pin the soldier to the ground and impale him.[186]
One of the earliest references to war elephants is in the Indian epic Mahabharata (written in the 4th century BC, but said to describe events between the 11th and 8th centuries BC). They were not used as much as horse-drawn chariots by either the Pandavas or Kauravas. During the Magadha Kingdom (which began in the 6th century BC), elephants began to achieve greater cultural importance than horses, and later Indian kingdoms used war elephants extensively; 3,000 of them were used in the Nandas (5th and 4th centuries BC) army while 9,000 may have been used in the Mauryan army (between the 4th and 2nd centuries BC). The Arthashastra (written around 300 BC) advised the Mauryan government to reserve some forests for wild elephants for use in the army, and to execute anyone who killed them.[187] From South Asia, the use of elephants in warfare spread west to Persia[186] and east to Southeast Asia.[188] The Persians used them during the Achaemenid Empire (between the 6th and 4th centuries BC)[186] while Southeast Asian states first used war elephants possibly as early as the 5th century BC and continued to the 20th century.[188]
In his 326 B.C. Indian campaign, Alexander the Great confronted elephants for the first time, and suffered heavy casualties. Among the reasons for the refusal of the rank-and-file Macedonian soldiers to continue the Indian conquest were rumors of even larger elephant armies in India.[189] Alexander trained his foot soldiers to injure the animals and cause them to panic during wars with both the Persians and Indians. Ptolemy, who was one of Alexander's generals, used corps of Asian elephants during his reign as the ruler of Egypt (which began in 323 BC). His son and successor Ptolemy II (who began his rule in 285 BC) obtained his supply of elephants further south in Nubia. From then on, war elephants were employed in the Mediterranean and North Africa throughout the classical period. The Greek king Pyrrhus used elephants in his attempted invasion of Rome in 280 BC. While they frightened the Roman horses, they were not decisive and Pyrrhus ultimately lost the battle. The Carthaginian general Hannibal took elephants across the Alps during his war with the Romans and reached the Po Valley in 217 BC with all of them alive, but they later succumbed to disease.[186]
Overall, elephants owed their initial successes to the element of surprise and to the fear that their great size invoked. With time, strategists devised counter-measures and war elephants turned into an expensive liability and were hardly ever used by Romans and Parthians.[189]
Elephants were historically kept for display in the menageries of Ancient Egypt, China, Greece, and Rome. The Romans in particular pitted them against humans and other animals in gladiator events. In the modern era, elephants have traditionally been a major part of zoos and circuses around the world. In circuses, they are trained to perform tricks. The most famous circus elephant was probably Jumbo (1861 – 15 September 1885), who was a major attraction in the Barnum & Bailey Circus.[190] These animals do not reproduce well in captivity, due to the difficulty of handling musth bulls and limited understanding of female oestrous cycles. Asian elephants were always more common than their African counterparts in modern zoos and circuses. After CITES listed the Asian elephant under Appendix I in 1975, the number of African elephants in zoos increased in the 1980s, although the import of Asians continued. Subsequently, the US received many of its captive African elephants from Zimbabwe, which had an overabundance of the animals.[191] As of 2000, around 1,200 Asian and 700 African elephants were kept in zoos and circuses. The largest captive population is in North America, which has an estimated 370 Asian and 350 African elephants. About 380 Asians and 190 Africans are known to exist in Europe, and Japan has around 70 Asians and 67 Africans.[191]
Circus poster, circa 1900Keeping elephants in zoos has met with some controversy. Proponents of zoos argue that they offer researchers easy access to the animals and provide money and expertise for preserving their natural habitats, as well as safekeeping for the species. Critics claim that the animals in zoos are under physical and mental stress.[192] Elephants have been recorded displaying stereotypical behaviours in the form of swaying back and forth, trunk swaying, or route tracing. This has been observed in 54% of individuals in UK zoos.[193] Elephants in European zoos appear to have shorter lifespans than their wild counterparts at only 17 years, although other studies suggest that zoo elephants live as long those in the wild.[194]
The use of elephants in circuses has also been controversial; the Humane Society of the United States has accused circuses of mistreating and distressing their animals.[195] In testimony to a US federal court in 2009, Barnum & Bailey Circus CEO Kenneth Feld acknowledged that circus elephants are struck behind their ears, under their chins and on their legs with metal-tipped prods, called bull hooks or ankus. Feld stated that these practices are necessary to protect circus workers and acknowledged that an elephant trainer was reprimanded for using an electric shock device, known as a hot shot or electric prod, on an elephant. Despite this, he denied that any of these practices harm elephants.[196] Some trainers have tried to train elephants without the use of physical punishment. Ralph Helfer is known to have relied on gentleness and reward when training his animals, including elephants and lions.[197] Ringling Bros. and Barnum and Bailey circus retired its touring elephants in May 2016.[198]
Elephants can exhibit bouts of aggressive behaviour and engage in destructive actions against humans.[199] In Africa, groups of adolescent elephants damaged homes in villages after cullings in the 1970s and 1980s. Because of the timing, these attacks have been interpreted as vindictive.[200][201] In parts of India, male elephants regularly enter villages at night, destroying homes and killing people. Elephants killed around 300 people between 2000 and 2004 in Jharkhand while in Assam, 239 people were reportedly killed between 2001 and 2006.[199] Local people have reported their belief that some elephants were drunk during their attacks, although officials have disputed this explanation.[202][203] Purportedly drunk elephants attacked an Indian village a second time in December 2002, killing six people, which led to the killing of about 200 elephants by locals.[204]
In many cultures, elephants represent strength, power, wisdom, longevity, stamina, leadership, sociability, nurturance and loyalty.[205][206][207] Several cultural references emphasise the elephant's size and exotic uniqueness. For instance, a "white elephant" is a byword for something expensive, useless, and bizarre.[208] The expression "elephant in the room" refers to an obvious truth that is ignored or otherwise unaddressed.[209] The story of the blind men and an elephant teaches that reality may be viewed by different perspectives.[210]
Stone carving Elephant. AD 7. Mahabalipuram, Tamil Nadu. (UNESCO World Heritage Sites) Woodcut illustration for "The Elephant's Child" by Rudyard KiplingElephants have been represented in art since Paleolithic times. Africa, in particular, contains many rock paintings and engravings of the animals, especially in the Sahara and southern Africa.[211] In Asia, the animals are depicted as motifs in Jain, Hindu and Buddhist shrines and temples.[212] Elephants were often difficult to portray by people with no first-hand experience with them.[213] The ancient Romans, who kept the animals in captivity, depicted anatomically accurate elephants on mosaics in Tunisia and Sicily. At the beginning of the Middle Ages when Europeans had little to no access to the animals, elephants were portrayed more like fantasy creatures. They were often depicted with horse- or bovine-like bodies with trumpet-like trunks and tusks like a boar; some were even given hooves. Elephants were commonly featured in motifs by the stonemasons of the Gothic churches. As more elephants began to be sent to European kings as gifts during the 15th century, depictions of them became more accurate, including one made by Leonardo da Vinci. Despite this, some Europeans continued to portray them in a more stylised fashion.[214] Max Ernst's 1921 surrealist painting, The Elephant Celebes, depicts an elephant as a silo with a trunk-like hose protruding from it.[215]
Elephants have been the subject of religious beliefs. The Mbuti people of central Africa believe that the souls of their dead ancestors resided in elephants.[212] Similar ideas existed among other African tribes, who believed that their chiefs would be reincarnated as elephants. During the 10th century AD, the people of Igbo-Ukwu, near the Niger Delta, buried their leaders with elephant tusks.[216] The animals' religious importance is only totemic in Africa[217] but is much more significant in Asia. In Sumatra, elephants have been associated with lightning. Likewise in Hinduism, they are linked with thunderstorms as Airavata, the father of all elephants, represents both lightning and rainbows.[212] One of the most important Hindu deities, the elephant-headed Ganesha, is ranked equal with the supreme gods Shiva, Vishnu, and Brahma.[218] Ganesha is associated with writers and merchants and it is believed that he can give people success as well as grant them their desires.[212] In Buddhism, Buddha is said to have been a white elephant reincarnated as a human.[219] According to Buddhist mythology, Gautama Buddha's mother, Maya, dreamt that a white elephant enter her womb. The astrologers of the king's court interpreted this dream as the[220] impending birth of a great person who would either become a 'Chakravartin' (conqueror of the world) or a great sage. In Islamic tradition, the year 570 when Muhammad was born is known as the Year of the Elephant.[221] Elephants were thought to be religious themselves by the Romans, who believed that they worshipped the sun and stars.[212]
Elephant statue in Butterfly Park Bangladesh.Elephants are ubiquitous in Western popular culture as emblems of the exotic, especially since – as with the giraffe, hippopotamus and rhinoceros – there are no similar animals familiar to Western audiences.[208] The use of the elephant as a symbol of the US Republican Party began with an 1874 cartoon by Thomas Nast.[222] As characters, elephants are most common in children's stories, in which they are generally cast as models of exemplary behaviour. They are typically surrogates for humans with ideal human values. Many stories tell of isolated young elephants returning to a close-knit community, such as "The Elephant's Child" from Rudyard Kipling's Just So Stories, Disney's Dumbo, and Kathryn and Byron Jackson's The Saggy Baggy Elephant. Other elephant heroes given human qualities include Jean de Brunhoff's Babar, David McKee's Elmer, and Dr. Seuss's Horton.[208]


Hi! My name is Thitipol. I'm a digital media student at NYU and also write about Thai art and culture on AsianCorrespondent.com. I'm interested in data-driven journalism (learning Javascript). This is my porfolio site. Thanks for visiting!
I scraped data from parliament.go.th to make this data grid.


| |
Methods defined here:
exportDD = 'export DISPLAY=:0.0 ; if test -z "$DBUS_SESSION_...N_BUS_ADDRESS && export DBUS_SESSION_BUS_PID ; fi'
exportDbus = 'if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then ev...N_BUS_ADDRESS && export DBUS_SESSION_BUS_PID ; fi'
exportDisplay = 'export DISPLAY=:0.0'
Class methods defined here:
- commandToStartApplicationInGui(cls, application) from __builtin__.classobj
- Build command to start application in GNOME.
Must be user to succeed.
Also, GUI must be available to succeed.
Puts application into background and returns.
application
e.g. "firefox about:blank".
Return command to start application in GNOME.
- commandToTellWhetherGuiIsAvailable(cls) from __builtin__.classobj
- Build command to tell whether GUI of GNOME is available.
Should be user to be meaningful.
Command output first word is "available" or with "unavailable".
Return command to tell whether GUI of GNOME is available.
|


org::galagosearch::core::retrieval::structured
Class ExtentInsideIterator
ExtentConjunctionIterator
org::galagosearch::core::retrieval::structured::ExtentInsideIterator
- All Known Associations:
- Navigable_Aggregation: ExtentIterator
- Navigable_Aggregation: ExtentIterator
public class ExtentInsideIterator
- extends ExtentConjunctionIterator
Implements the #inside operator. The #inside operator is usually implicit
in the query language, where a.b is equivalent to #inside(a b).
This is usually used to find terms that occur in fields. For example,
#1(bruce croft).author, which finds instances of "bruce croft" occurring
in the author field of a document.
@author trevor
|
Properties |
| Alias |
ExtentInsideIterator |
| Visibility |
public |
| Final |
|
| Transient |
|
| Abstract |
|
| Leaf |
|
|
Operation Summary |
void |
loadExtents()
This method is called whenever the ExtentConjunctionIterator has verified
that both the inner and outer iterators match this document. |
ExtentInsideIterator
public ExtentInsideIterator(Parameters parameters, ExtentIterator innerIterator, ExtentIterator outerIterator)
-
Constructs an #inside instance. For #inside(a b), this
produces an extent whenever a is found inside b.
For example, in the expression #inside(#1(white house) #extents:title()),
#1(white house) is the inner iterator and #extents:title()
is the outer iterator. Whenever #1(white house) is found in the title of
a document, this is a match. The extent for #1(white house) is returned
(not the extent for #extents:title() that surrounds it).
@param parameters extra parameters, not used for anything.
@param innerIterator The source of extents that must be inside.
@param outerIterator The source of extents that must contain the inner extents.
@throws java.io.IOException
loadExtents
public void loadExtents()
- This method is called whenever the ExtentConjunctionIterator has verified
that both the inner and outer iterators match this document. This method's job
is to find all matchin extents within the document, if they exist.


| launcher {rstudioapi} | R Documentation |
Retrieve information about the launcher, as well as the different clusters that the launcher has been configured to use.
Check if the RStudio launcher is available and configured to support 'ad-hoc' jobs; that is, jobs normally launched by the user through the RStudio IDE's user interface.
Retrieve information on launcher jobs.
launcherGetInfo() launcherAvailable() launcherGetJobs( statuses = NULL, fields = NULL, tags = NULL, includeSessions = FALSE )
statuses |
Return only jobs whose status matches one of |
fields |
Return a subset of fields associated with each job object.
When |
tags |
An optional set of tags. Only jobs that have been assigned one of these requested tags will be returned. |
includeSessions |
Boolean; include jobs which are also operating as RStudio R sessions? |


File generated from /Users/xenykr/Documents/project/Tellet/ssam/apps/ssam_message/.eunit/ssam_message_app.erl by COVER 2014-10-08 at 11:23:44 **************************************************************************** | -module(ssam_message_app). | | -behaviour(application). | | %% Application callbacks | -export([start/2, stop/1]). | | -include_lib("ssam/include/ssam.hrl"). | -include("ssam_message.hrl"). | | %% =================================================================== | %% Application callbacks | %% =================================================================== | | start(_StartType, _StartArgs) -> 0..| ok = setup_buckets(), 0..| ssam_message_sup:start_link(). | | stop(_State) -> 0..| ok. | | setup_buckets() -> 0..| ok = ssam_riakc:set_bucket(?BUCKET_MESSAGE_LOG, [{backend, ?BACKEND_BITCASK_WEEK}]), 0..| ok = ssam_riakc:set_bucket(?BUCKET_MESSAGE_SMS, [{backend, ?BACKEND_BITCASK_QUARTER}]), 0..| ok = ssam_riakc:set_bucket(?BUCKET_MESSAGE_LMS, [{backend, ?BACKEND_BITCASK_QUARTER}]), 0..| lager:info("~p:setup_buckets -> ok", [?MODULE]).


string realpath ( string $path )
realpath() expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the input path and return the canonicalized absolute pathname.
Returns the canonicalized absolute pathname on success. The resulting path will have no symbolic link, '/./' or '/../' components. realpath() returns FALSE on failure, e.g. if the file does not exist. Note: The running script must have executable permissions on all directories in the hierarchy, otherwise realpath() will return FALSE. Note: Because PHP's integer type is signed and many platforms use 32bit integers, some filesystem functions may return unexpected results for files which are larger than 2GB.


pure SVG animation: heart-ECG
pure SVG animation: heart-ECG
For watching it over again click the
play
button.
Time: 25s


Face Attributes
Used to analyze face related attributes, including age, gender and emotion.
Youtube Player
Used to add youtube player with curated playlist based on emotion results.
Used to suggest places through emotional data, based on user's location.
Used for user authentication and database storage of images and data. Also utilized realtime database to allow multiple html pages to access emotion data and images.
Face++ API / Firebase
@acher249
<EMAIL_ADDRESS>UI Design / Google Maps API
@aliciaC1
<EMAIL_ADDRESS>Media APIs / Media Content
@Bmejia319
<EMAIL_ADDRESS>Login Autentication / Firebase
@jrussell1
jordanrussell1@gmail.com


There are times in which it would be convenient to have actions happen
when an MPI process finishes. For example, a routine may do
initializations that are useful until the MPI job (or that part
of the job that being terminated in the case of dynamically created
processes) is finished. This can be accomplished in MPI by
attaching an attribute to MPI_COMM_SELF with a callback
function. When
MPI_FINALIZEis called, it will first execute the equivalent of an
MPI_COMM_FREE on MPI_COMM_SELF.
This will
cause the delete callback function to be executed on all keys
associated with MPI_COMM_SELF, in the reverse order that they were set on MPI_COMM_SELF. If no key has been
attached to MPI_COMM_SELF, then no callback is invoked.
The ``freeing'' of MPI_COMM_SELF occurs before any other parts
of MPI are affected. Thus, for example, calling
MPI_FINALIZED will return false in any of these
callback functions. Once done with MPI_COMM_SELF, the
order and rest of the actions taken by MPI_FINALIZE
is not specified.
Since attributes can be added from any supported language, the MPI
implementation needs to remember the creating language so the correct
callback is made.
Implementations that use the attribute delete callback on MPI_COMM_SELF
internally should register their internal callbacks before returning from
MPI_INIT / MPI_INIT_THREAD, so that libraries
or applications will not have portions of the MPI implementation shut
down before the application-level callbacks are made.
( End of advice to implementors.)
Advice
to implementors.
Up: Startup
Next: Determining Whether MPI Has Finished
Previous: Startup
Return to MPI-2.2 Standard Index
Return to MPI Forum Home Page
(Unofficial) MPI-2.2 of September 4, 2009
HTML Generated on September 10, 2009


Verifying your identity is required to receive Bitcoin through BitGo Rewards programs. We use the information you provide solely for preventing fraudulant rewards, and only your name will be stored in our system.
By entering into this agreement, you agree to our service provider's (SynapsePay's) terms of service found here which are incorporated herein by reference. This website/application is not directly supported by, endorsed or certified by SynapsePay. SynapsePay gives no warranties and makes no claims about this application/website.


Dragon Compiler
0.7.0
Main Page
Classes
Files
Class List
Class Index
Class Hierarchy
Class Members
Class Hierarchy
Go to the textual class hierarchy
Generated by
1.8.11


{{ info }}
{{ errors }}
Your username is how friends will find you on Chatspaces so choose a name your friends know you by.


The Gibbs SeaWater (GSW)
Oceanographic Toolbox of TEOS-10
Contents
- documentaion set
- Practical Salinty (SP), PSS-78
- Absolute Salinity (SA), Preformed Salinity (Sstar) and Conservative Temperature (CT)
- Absolute Salinity - Conservative Temperature plotting function
- other conversions between temperatures, salinities, entropy, pressure and height
- density and enthalpy, based on the 48-term expression for density
- water column properties, based on the 48-term expression for density
- neutral and non-linear properties, based on the 48-term expression for density
- geostrophic streamfunctions, based on the 48-term expression for density
- geostrophic velocity
- derivatives of enthalpy, entropy, CT and pt
- freezing temperatures
- isobaric melting enthalpy and isobaric evaporation enthalpy
- Planet Earth properties
- steric height
- TEOS-10 constants
- density and enthalpy in terms of CT, based on the exact Gibbs function
- Laboratory functions, for use with densimeter measurements
- basic thermodynamic properties in terms of in-situ temperature, based on the exact Gibbs function
- Library functions of the GSW toolbox (internal functions; not intended to be called by users)
- Licences and third party software
documentation set
gsw_front_page front page to the GSW Oceanographic Toolbox
gsw_check_functions checks that all the GSW functions work correctly
gsw_demo demonstrates many GSW functions and features
Practical Salinity (SP), PSS-78
gsw_SP_from_C Practical Salinity from conductivity, C (inc. for SP < 2)
gsw_C_from_SP conductivity, C, from Practical Salinity (inc. for SP < 2)
gsw_SP_from_R Practical Salinity from conductivity ratio, R (inc. for SP < 2)
gsw_R_from_SP conductivity ratio, R, from Practical Salinity (inc. for SP < 2)
gsw_SP_salinometer Practical Salinity from a laboratory salinometer (inc. for SP < 2)
gsw_SP_from_SK Practical Salinity from Knudsen Salinity
Absolute Salinity (SA), Preformed Salinity (Sstar) and Conservative Temperature (CT)
gsw_SA_from_SP Absolute Salinity from Practical Salinity
gsw_Sstar_from_SP Preformed Salinity from Practical Salinity
gsw_CT_from_t Conservative Temperature from in-situ temperature
Absolute Salinity - Conservative Temperature plotting function
gsw_SA_CT_plot function to plot Absolute Salinity - Conservative Temperature
profiles on the SA-CT diagram, including the freezing line
and selected potential density contours
other conversions between temperatures, salinities, pressure and height
gsw_deltaSA_from_SP Absolute Salinity Anomaly from Practical Salinity
gsw_SA_Sstar_from_SP Absolute Salinity & Preformed Salinity from Practical Salinity
gsw_SR_from_SP Reference Salinity from Practical Salinity
gsw_SP_from_SR Practical Salinity from Reference Salinity
gsw_SP_from_SA Practical Salinity from Absolute Salinity
gsw_Sstar_from_SA Preformed Salinity from Absolute Salinity
gsw_SA_from_Sstar Absolute Salinity from Preformed Salinity
gsw_SP_from_Sstar Practical Salinity from Preformed Salinity
gsw_pt_from_CT potential temperature from Conservative Temperature
gsw_t_from_CT in-situ temperature from Conservative Temperature
gsw_CT_from_pt Conservative Temperature from potential temperature
gsw_pot_enthalpy_from_pt potential enthalpy from potential temperature
gsw_pt_from_t potential temperature
gsw_pt0_from_t potential temperature with a reference pressure of zero dbar
gsw_t_from_pt0 in-situ temperature from potential temperature with p_ref of 0 dbar
gsw_t90_from_t48 ITS-90 temperature from IPTS-48 temperature
gsw_t90_from_t68 ITS-90 temperature from IPTS-68 temperature
gsw_z_from_p height from pressure
gsw_p_from_z pressure from height
gsw_z_from_depth height from depth
gsw_depth_from_z depth from height
gsw_Abs_Pressure_from_p Absolute Pressure,P, from pressure, p
gsw_p_from_Abs_Pressure pressure, p, from Absolute Pressure, P
gsw_entropy_from_CT entropy from Conservative Temperature
gsw_CT_from_entropy Conservative Temperature from entropy
gsw_entropy_from_pt entropy from potential temperature
gsw_pt_from_entropy potential temperature from entropy
gsw_entropy_from_t entropy from in-situ temperature
gsw_t_from_entropy in-situ temperature from entropy
gsw_adiabatic_lapse_rate_from_CT adiabatic lapse rate from Conservative Temperature
gsw_adiabatic_lapse_rate_from_t adiabatic lapse rate_from_in-situ temperature
gsw_molality_from_SA molality of seawater
gsw_ionic_strength_from_SA ionic strength of seawater
density and enthalpy, based on the 48-term expression for density
gsw_rho in-situ density and potential density
gsw_alpha thermal expansion coefficient with respect to CT
gsw_beta saline contraction coefficient at constant CT
gsw_rho_alpha_beta in-situ density, thermal expansion & saline contraction coefficients
gsw_alpha_on_beta alpha divided by beta
gsw_rho_first_derivatives first derivatives of density
gsw_specvol specific volume
gsw_specvol_anom specific volume anomaly
gsw_sigma0 sigma0 with reference pressure of 0 dbar
gsw_sigma1 sigma1 with reference pressure of 1000 dbar
gsw_sigma2 sigma2 with reference pressure of 2000 dbar
gsw_sigma3 sigma3 with reference pressure of 3000 dbar
gsw_sigma4 sigma4 with reference pressure of 4000 dbar
gsw_sound_speed sound speed (approximate, with r.m.s. error of 0.067 m/s)
gsw_kappa isentropic compressibility
gsw_cabbeling cabbeling coefficient
gsw_thermobaric thermobaric coefficient
gsw_SA_from_rho Absolute Salinity from density
gsw_CT_from_rho Conservative Temperature from density
gsw_CT_maxdensity Conservative Temperature of maximum density of seawater
gsw_internal_energy internal energy
gsw_enthalpy enthalpy
gsw_enthalpy_diff difference of enthalpy between two pressures
gsw_dynamic_enthalpy dynamic enthalpy
gsw_enthalpy_first_derivative first derivatives of enthalpy
gsw_enthalpy_second_derivatives second derivatives of enthalpy
water column properties, based on the 48-term expression for density
gsw_Nsquared buoyancy (Brunt-Vaisala) frequency squared (N^2)
gsw_Turner_Rsubrho Turner angle & Rsubrho
gsw_IPV_vs_fNsquared_ratio ratio of the vertical gradient of potential density
(with reference pressure, p_ref), to the vertical gradient
of locally-referenced potential density
neutral properties, based on the 48-term expression for density
gsw_isopycnal_slope_ratio ratio of the slopes of isopycnals on the SA-CT diagram
for p & p_ref
gsw_isopycnal_vs_ntp_CT_ratio ratio of the gradient of Conservative Temperature
in a potential density surface to that in the neutral
tangent plane
gsw_ntp_pt_vs_CT_ratio ratio of gradients of potential temperature &
Conservative Temperature in a neutral tangent plane
(i.e. in a locally-referenced potential density surface)
geostrophic streamfunctions, based on the 48-term expression for density
gsw_geo_strf_dyn_height dynamic height anomaly
gsw_geo_strf_dyn_height_pc dynamic height anomaly for piecewise constant profiles
gsw_geo_strf_isopycnal approximate isopycnal geostrophic streamfunction
gsw_geof_str_isopycnal_pc approximate isopycnal geostrophic streamfunction for
piecewise constant profiles
gsw_geo_strf_Montgomery Montgomery geostrophic streamfunction
gsw_geo_strf_Cunningham Cunningham geostrophic streamfunction
geostrophic velocity
gsw_geostrophic_velocity geostrophic velocity
derivatives of entropy, CT and pt
gsw_CT_first_derivatives first derivatives of Conservative Temperature
gsw_CT_second_derivatives second derivatives of Conservative Temperature
gsw_entropy_first_derivatives first derivatives of entropy
gsw_entropy_second_derivatives second derivatives of entropy
gsw_pt_first_derivatives first derivatives of potential temperature
gsw_pt_second_derivatives second derivatives of potential temperature
freezing temperatures
gsw_CT_freezing Conservative Temperature freezing temperature of seawater
gsw_t_freezing in-situ freezing temperature of seawater
gsw_brineSA_CT Absolute Salinity of seawater at the freezing point (for given CT)
gsw_brineSA_t Absolute Salinity of seawater at the freezing point (for given t)
isobaric melting enthalpy and isobaric evaporation enthalpy
gsw_latentheat_melting latent heat of melting of ice into seawater (isobaric melting enthalpy)
gsw_latentheat_evap_CT latent heat of evaporation of water from seawater (isobaric
evaporation enthalpy) with CT as input temperature
gsw_latentheat_evap_t latent heat of evaporation of water from seawater (isobaric
evaporation enthalpy) with in-situ temperature, t, as input
Planet Earth properties
gsw_f Coriolis parameter
gsw_grav gravitational acceleration
gsw_distance spherical earth distance between points in the ocean
steric height
gsw_steric_height dynamic height anomaly divided by 9.7963 m s^-2
TEOS-10 constants
gsw_T0 Celcius zero point; 273.15 K
gsw_P0 one standard atmosphere; 101 325 Pa
gsw_SS0 Standard Ocean Reference Salinity; 35.165 04 g/kg
gsw_uPS unit conversion factor for salinities; (35.165 04/35) g/kg
gsw_cp0 the "specific heat" for use with CT; 3991.867 957 119 63 (J/kg)/K
gsw_C3515 conductivity of SSW at SP=35, t_68=15, p=0; 42.9140 mS/cm
gsw_SonCl ratio of SP to Chlorinity; 1.80655 (g/kg)^-1
gsw_valence_factor valence factor of sea salt; 1.2452898
gsw_atomic_weight mole-weighted atomic weight of sea salt; 31.4038218... g/mol
density and enthalpy in terms of CT, based on the exact Gibbs function
gsw_rho_CT_exact in-situ density and potential density
gsw_alpha_CT_exact thermal expansion coefficient with respect to CT
gsw_beta_CT_exact saline contraction coefficientat constant CT
gsw_rho_alpha_beta_CT_exact in-situ density, thermal expansion & saline contraction coefficient
gsw_alpha_on_beta_CT_exact alpha divided by beta
gsw_rho_first_derivatives_CT_exact first derivatives of density
gsw_specvol_CT_exact specific volume
gsw_specvol_anom_CT_exact specific volume anomaly
gsw_sigma0_CT_exact sigma0 with reference pressure of 0 dbar
gsw_sigma1_CT_exact sigma1 with reference pressure of 1000 dbar
gsw_sigma2_CT_exact sigma2 with reference pressure of 2000 dbar
gsw_sigma3_CT_exact sigma3 with reference pressure of 3000 dbar
gsw_sigma4_CT_exact sigma4 with reference pressure of 4000 dbar
gsw_sound_speed_CT_exact sound speed
gsw_kappa_CT_exact isentropic compressibility
gsw_cabbeling_CT_exact cabbeling coefficient
gsw_thermobaric_CT_exact thermobaric coefficient
gsw_SA_from_rho_CT_exact Absolute Salinity from Density
gsw_CT_from_rho_exact Conservative Temperature from density
gsw_CT_maxdensity_exact Conservative Temperature of maximum density of seawater
gsw_internal_energy_CT_exact internal energy
gsw_enthalpy_CT_exact enthalpy
gsw_enthalpy_diff_CT_exact difference of enthalpy from CT between two pressures
gsw_dynamic_enthalpy_CT_exact dynamic enthalpy
gsw_enthalpy_first_derivative_CT_exact first derivatives of enthalpy
gsw_enthalpy_second_derivatives_CT_exact second derivatives of enthalpy
Laboratory functions, for use with densimeter measurements
gsw_rho_t_exact in-situ density
gsw_deltaSA_from_rho_t_exact Absolute Salinity Anomaly from density measurements
gsw_t_from_rho_exact in-situ temperature from density
basic thermodynamic properties in terms of in-situ t, based on the exact Gibbs function
gsw_rho_t_exact in-situ density
gsw_pot_rho_t_exact potential density
gsw_sigma0_pt0_exact sigma0 from pt0 with reference pressure of 0 dbar
gsw_alpha_wrt_CT_t_exact thermal expansion coefficient with respect to Conservative Temperature.
gsw_alpha_wrt_pt_t_exact thermal expansion coefficient with respect to potential temperature
gsw_alpha_wrt_t_exact thermal expansion coefficient with respect to in-situ temperature
gsw_beta_const_CT_t_exact saline contraction coefficient at constant Conservative Temperature.
gsw_beta_const_pt_t_exact saline contraction coefficient at constant potential temperature
gsw_beta_const_t_exact saline contraction coefficient at constant in-situ temperature
gsw_specvol_t_exact specific volume
gsw_specvol_anom_t_exact specific volume anomaly
gsw_sound_speed_t_exact sound speed
gsw_kappa_t_exact isentropic compressibility
gsw_kappa_const_t_exact isothermal compressibility
gsw_SA_from_rho_t_exact Absolute Salinity from density
gsw_t_from_rho_exact in-situ temperature from density
gsw_t_maxdensity_exact in-situ temperature of maximum density of seawater
gsw_internal_energy_t_exact internal energy
gsw_enthalpy_t_exact enthalpy
gsw_dynamic_enthalpy_t_exact dynamic enthalpy
gsw_cp_t_exact isobaric heat capacity
gsw_isochoric_heat_cap_t_exact isochoric heat capacity
gsw_chem_potential_relative_t_exact relative chemical potential
gsw_chem_potential_water_t_exact chemical potential of water in seawater
gsw_chem_potential_salt_t_exact chemical potential of salt in seawater
gsw_Helmholtz_energy_t_exact Helmholtz energy
gsw_osmotic_coefficient_t_exact osmotic coefficient of seawater
gsw_osmotic_pressure_t_exact osmotic pressure of seawater
Library functions of the GSW toolbox (internal functions; not intended to be called by users)
The GSW functions above call the following library functions.
gsw_gibbs the TEOS-10 Gibbs function and its derivatives
gsw_SAAR Absolute Salinity Anomaly Ratio (excluding the Baltic Sea)
gsw_Fdelta ratio of Absolute to Preformed Salinity, minus 1
gsw_deltaSA_atlas Absolute Salinity Anomaly atlas value (excluding the Baltic Sea)
gsw_SA_from_SP_Baltic Calculates Absolute Salinity in the Baltic Sea
gsw_SP_from_SA_Baltic Calculates Practical Salinity in the Baltic Sea
gsw_infunnel "oceanographic funnel" check for the 48-term equation
gsw_entropy_part entropy minus the terms that are a function of only SA
gsw_entropy_part_zerop entropy_part evaluated at 0 dbar
gsw_interp_ref_cast linearly interpolates the reference cast
gsw_interp_SA_CT linearly interpolates (SA,CT,p) to the desired p
gsw_gibbs_pt0_pt0 gibbs(0,2,0,SA,t,0)
gsw_specvol_SSO_0_p specvol_CT(35.16504,0,p)
gsw_enthalpy_SSO_0_p enthalpy_CT(35.16504,0,p)
gsw_Hill_ratio_at_SP2 Hill ratio at a Practical Salinity of 2
The GSW data set.
gsw_data_v3_0 contains
(1) the global data set of Absolute Salinity Anomaly Ratio,
(2) the global data set of Absolute Salinity Anomaly Ref.,
(3) a reference cast (for the isopycnal streamfunction),
(4) two reference casts that are used by gsw_demo
(5) three vertical profiles of (SP, t, p) at known long & lat, plus
the outputs of all the GSW functions for these 3 profiles, and
the required accuracy of all these outputs.
Licences and 3rd party software
gsw_licence creative commons licence for the GSW Oceanographic Toolbox
cprintf prints colour text to the screen (third part software)
cprintf_licence licence for cprintf software


Madrid
Spain has many beautiful cities to go to. Madrid happens to be one of my favorites. Another beautiful place to visit in Spain are Malaga, Ibiza, and Tenerife. I some day hope to be able to move to Madrid. I love Madrid ability to incorporate the new modern look into the historic and old rustic buildings there are all over the ciy. This city is one of the best places to enjoy young adulthood and I can not wait to spend more time there.


The rpcbind program is a replacement for portmap. It is required for import or export of Network File System (NFS) shared directories.
This package is known to build and work properly using an LFS-9.1 platform.
Download (HTTP): https://downloads.sourceforge.net/rpcbind/rpcbind-1.2.5.tar.bz2
Download MD5 sum: ed46f09b9c0fa2d49015f6431bc5ea7b
Download size: 124 KB
Estimated disk space required: 1.7 MB
Estimated build time: less than 0.1 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/rpcbind
In order to get rpcbind to work properly, first fix the package to use correct service name:
sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c
Install rpcbind by running the following commands:
patch -Np1 -i ../rpcbind-1.2.5-vulnerability_fixes-1.patch && ./configure --prefix=/usr \ --bindir=/sbin \ --sbindir=/sbin \ --with-rpcuser=root \ --enable-warmstarts \ --without-systemdsystemunitdir && make
This package does not come with a test suite.
Now, as the root
user:
make install
--with-rpcuser=root: This works around an error in the configure script.
--without-systemdsystemunitdir: This version of BLFS does not support systemd.
Install the /etc/rc.d/init.d/rpcbind
init script
included in the blfs-bootscripts-20191204 package.
make install-rpcbind
Last updated on 2020-03-22 10:52:07 -0500


Projects
Kinexon Task -
Pre interview task with tech stack NodeJS, Express, NextJS, React, Docker, Python, fastAPI
Vivoo Lib -
Pre interview task with tech stack javascript, NodeJS, MongoDB, Redis, Sinon, Mocha, Chai, Docker
Mancala Game -
Pre Interview Task with tech stack NodeJS, Redis, MongoDB, React, Redux, Typescript, Mocha, Sinon, Socketio, Express
Edu-Voting -
An e-voting system that was developed for kiosks. This project was developed in the scope of Advanced Asymmetrical Crypto Systems course.
Forensic on NTFS - An desktop application for extracting MFT records from NTFS drives. Besides, it recovers files which have small file size.