Global Information Lookup Global Information

Direct function information


A direct function (dfn, pronounced "dee fun") is an alternative way to define a function and operator (a higher-order function) in the programming language APL. A direct operator can also be called a dop (pronounced "dee op"). They were invented by John Scholes in 1996.[1] They are a unique combination of array programming, higher-order function, and functional programming, and are a major distinguishing advance of early 21st century APL over prior versions.

A dfn is a sequence of possibly guarded expressions (or just a guard) between { and }, separated by or new-lines, wherein denotes the left argument and the right, and denotes recursion (function self-reference). For example, the function PT tests whether each row of is a Pythagorean triplet (by testing whether the sum of squares equals twice the square of the maximum).

   PT {(+/*2)=2×(/)*2}
   PT 3 4 5
1
   x
 4  5  3
 3 11  6
 5 13 12
17 16  8
11 12  4
17 15  8
   PT x
1 0 1 0 0 1

The factorial function as a dfn:

   fact {0=⍵:1  × -1}
   fact 5
120
   fact¨ 10    ⍝ fact applied to each element of 0 to 9
1 1 2 6 24 120 720 5040 40320 362880
  1. ^ Scholes, John (October 1996). "Direct Functions in Dyalog APL" (PDF). Vector. 13 (2). Retrieved 16 September 2019.

and 23 Related for: Direct function information

Request time (Page generated in 0.8395 seconds.)

Direct function

Last Update:

A direct function (dfn, pronounced "dee fun") is an alternative way to define a function and operator (a higher-order function) in the programming language...

Word Count : 4009

Hash function

Last Update:

requirements of direct access of state spaces of large or variable-length keys. Use of hash functions relies on statistical properties of key and function interaction:...

Word Count : 7839

Measurable function

Last Update:

any measurable set is measurable. This is in direct analogy to the definition that a continuous function between topological spaces preserves the topological...

Word Count : 1329

Clausen function

Last Update:

tangent integral, polygamma function, Riemann zeta function, Dirichlet eta function, and Dirichlet beta function. The Clausen function of order 2 – often referred...

Word Count : 6405

Direct democracy

Last Update:

Direct democracy or pure democracy is a form of democracy in which the electorate decides on policy initiatives without elected representatives as proxies...

Word Count : 5178

Direct costs

Last Update:

Direct costs, in accounting, are those costs which are directly accountable to a cost object (such as a particular project, facility, function or product)...

Word Count : 340

Alpha and Omega

Last Update:

direct function syntax where the left (optional) and right arguments are denoted by the letters alpha and omega. For example, the following function computes...

Word Count : 982

Direct current

Last Update:

Direct current (DC) is one-directional flow of electric charge. An electrochemical cell is a prime example of DC power. Direct current may flow through...

Word Count : 1903

Bessel function

Last Update:

Bessel functions, first defined by the mathematician Daniel Bernoulli and then generalized by Friedrich Bessel, are canonical solutions y(x) of Bessel's...

Word Count : 11225

Pupil function

Last Update:

transmitted or not. Imperfections in the optics typically have a direct effect on the pupil function, it is therefore an important tool to study optical imaging...

Word Count : 832

Human reproductive system

Last Update:

male that contribute towards the reproduction process. The primary direct function of the male reproductive system is to provide the male sperm for fertilization...

Word Count : 1574

ISO 21500

Last Update:

Research has demonstrated that organizational effectiveness is a direct function of the decision-making criteria and goal-centered activities embedded...

Word Count : 1048

Monotonic function

Last Update:

In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves or reverses the given order. This concept...

Word Count : 2400

Direct digital synthesis

Last Update:

communication systems, function generators, mixers, modulators, sound synthesizers and as part of a digital phase-locked loop. A basic Direct Digital Synthesizer...

Word Count : 872

Transfer function

Last Update:

a transfer function (also known as system function or network function) of a system, sub-system, or component is a mathematical function that models...

Word Count : 2497

Choice function

Last Update:

f is a choice function for X if and only if it belongs to the direct product of X. Let X = { {1,4,7}, {9}, {2,7} }. Then the function f defined by f({1...

Word Count : 721

Hyperbolic functions

Last Update:

rotation. The Gudermannian function gives a direct relationship between the circular functions and the hyperbolic functions that does not involve complex...

Word Count : 4822

Wave function

Last Update:

In quantum physics, a wave function (or wavefunction) is a mathematical description of the quantum state of an isolated quantum system. The most common...

Word Count : 13534

Direct tax

Last Update:

redistributive function of the government identified by Richard Musgrave in his The Theory of Public Finance (1959). A progressive direct taxation could...

Word Count : 2753

Cumulative distribution function

Last Update:

cumulative distribution function (CDF) of a real-valued random variable X {\displaystyle X} , or just distribution function of X {\displaystyle X} ,...

Word Count : 4067

Likelihood function

Last Update:

likelihood function (often simply called the likelihood) is the joint probability mass (or probability density) of observed data viewed as a function of the...

Word Count : 8542

Function generator

Last Update:

In electrical engineering, a function generator is usually a piece of electronic test equipment or software used to generate different types of electrical...

Word Count : 1337

Colour trade mark

Last Update:

Brunswick Corp., 28 USPQ 2d 1197, 1199 (1993). Even though there is no direct function for the colour black in this case, protection was denied under the...

Word Count : 1500

PDF Search Engine © AllGlobal.net