4,493
edits
No edit summary |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Built-in|Imaginary|⌾}} is a [[monadic]] [[scalar function]] which multiplies the [[argument]] by the imaginary unit <source lang=apl inline>0J1</source>. This can be seen as a mapping from a real number to a pure imaginary number (a [[complex number]] with the real part of 0). It was added to [[J]] as <source lang=j inline>j.</source> together with initial support for complex numbers, and was adopted in [[Extended Dyalog APL]] using the [[glyph]] <source lang=apl inline>⌾</source> as a monadic counterpart of [[Complex (function)|Complex]]. In other APL implementations that support complex numbers, [[Circular]] with the left argument of <source lang=apl inline>¯11</source> has the same functionality as Imaginary. | {{Built-in|Imaginary|⌾}} is a [[monadic]] [[scalar function]] which multiplies the [[argument]] by the [[wikipedia:imaginary unit|imaginary unit]] <source lang=apl inline>0J1</source>, usually denoted <math>i</math> or <math>j</math> in traditional mathematics. This can be seen as a mapping from a real number to a pure imaginary number (a [[complex number]] with the real part of 0). It was added to [[J]] as <source lang=j inline>j.</source> together with initial support for complex numbers, and was adopted in [[Extended Dyalog APL]] using the [[glyph]] <source lang=apl inline>⌾</source> as a monadic counterpart of [[Complex (function)|Complex]]. In other APL implementations that support complex numbers, [[Circular]] with the left argument of <source lang=apl inline>¯11</source> has the same functionality as Imaginary. | ||
== Examples == | == Examples == | ||
Line 15: | Line 15: | ||
</source>{{Works in|[[Extended Dyalog APL]]}} | </source>{{Works in|[[Extended Dyalog APL]]}} | ||
== See also == | |||
* [[Negate]] | |||
* [[Reciprocal]] | |||
== External links == | |||
=== Documentation === | === Documentation === | ||
* J [https://www.jsoftware.com/help/dictionary/djdot.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/jdot NuVoc] | * J [https://www.jsoftware.com/help/dictionary/djdot.htm Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/jdot NuVoc] | ||
{{APL built-ins}}[[Category:Primitive functions]][[Category:Scalar monadic functions]] | {{APL built-ins}}[[Category:Primitive functions]][[Category:Scalar monadic functions]] |