Complex floor: Difference between revisions

Jump to navigation Jump to search
54 bytes added ,  16:06, 5 February 2021
m
no edit summary
(Created page with "'''Complex Floor''' is a domain extension for the built-in function Floor to accept complex numbers. It was originally designed by Eugene McDonnell<...")
 
mNo edit summary
(3 intermediate revisions by 2 users not shown)
Line 19: Line 19:
:# ''Compatability''. The complex floor function is compatible with the real floor function. Furthermore, its action on purely imaginary numbers is similar to the action of the real floor function on real numbers. In particular, <source lang=apl inline>(re⌊z)≤re⌈z</source> and <source lang=apl inline>(im⌊z)≤im⌈z</source>.
:# ''Compatability''. The complex floor function is compatible with the real floor function. Furthermore, its action on purely imaginary numbers is similar to the action of the real floor function on real numbers. In particular, <source lang=apl inline>(re⌊z)≤re⌈z</source> and <source lang=apl inline>(im⌊z)≤im⌈z</source>.


Then he proposed a shape on the complex plane that satisfies all seven requirements: a rectangle of width <source lang=apl inline>√2</source> and height <source lang=apl inline>√÷2</source>, rotated 45 degrees clockwise so that the midpoint of the bottom side is placed on an integer <source lang=apl inline>b</source>, and the top two corners are placed on <source lang=apl inline>b+0j1</source> and <source lang=apl inline>b+1</source> respectively. The following is the APL model by McDonnell, rewritten using [[dfns]]:
Then he proposed a shape on the complex plane that satisfies all seven requirements: a rectangle of width <source lang=apl inline>√2</source> and height <source lang=apl inline>√÷2</source>, rotated 45 degrees clockwise so that the midpoint of the bottom side is placed on an integer <source lang=apl inline>b</source>, and the top two corners are placed on <source lang=apl inline>b+0j1</source> and <source lang=apl inline>b+1</source> respectively. The following is the APL model by McDonnell, rewritten using [[dfn]]s:


<source lang=apl>
<source lang=apl>
Line 54: Line 54:


<references/>
<references/>
{{APL features}}[[Category:Scalar monadic functions]]

Navigation menu