4,494
edits
m (Text replacement - "{{APL built-ins}}" to "{{APL built-ins}}Category:Primitive functions") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
:''This page describes the dyadic arithmetic function. For reciprocal of a single argument, see [[Reciprocal]].'' | :''This page describes the dyadic arithmetic function. For reciprocal of a single argument, see [[Reciprocal]].'' | ||
{{Built-in|Divide|÷}} is a [[dyadic]] [[scalar function]] which gives the arithmetic ratio of its [[argument]]s. Divide shares the [[glyph]] < | {{Built-in|Divide|÷}} is a [[dyadic]] [[scalar function]] which gives the arithmetic ratio of its [[argument]]s. Divide shares the [[glyph]] <syntaxhighlight lang=apl inline>÷</syntaxhighlight> with the monadic arithmetic function [[Reciprocal]], and its result is the left argument divided by the right argument. | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang=apl> | ||
2 0 5÷4 0 2 | 2 0 5÷4 0 2 | ||
0.5 1 2.5 | 0.5 1 2.5 | ||
Line 14: | Line 14: | ||
2 0 5÷4 0 0 | 2 0 5÷4 0 0 | ||
0.5 0 0 | 0.5 0 0 | ||
</ | </syntaxhighlight> | ||
== Properties == | == Properties == | ||
Line 23: | Line 23: | ||
[[Reduction]] with Division gives the alternating product. | [[Reduction]] with Division gives the alternating product. | ||
== See also == | |||
* [[Residue]] | |||
* [[Subtract]] | |||
* [[Root]] | |||
== External links == | == External links == | ||
Line 28: | Line 33: | ||
=== Documentation === | === Documentation === | ||
* [ | * [https://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Divide.htm Dyalog] | ||
{{APL built-ins}}[[Category:Primitive functions]] | * J [https://www.jsoftware.com/help/dictionary/d130.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/percent#dyadic NuVoc] (as <syntaxhighlight lang=j inline>%</syntaxhighlight>) | ||
{{APL built-ins}}[[Category:Primitive functions]][[Category:Scalar dyadic functions]] |