Qestion about round up
3 posts
• Page 1 of 1
Qestion about round up
May be a silly question but why does
⌈⍬ or ⌈⍳0 (numeric empty vector) delivers
¯1.797693135E308 and not an numeric empty vector?
BR Florian
⌈⍬ or ⌈⍳0 (numeric empty vector) delivers
¯1.797693135E308 and not an numeric empty vector?
BR Florian
- bilekflo
- Posts: 28
- Joined: Wed Mar 12, 2014 10:07 pm
Re: Qestion about round up
For ⌈⍬, the result is ⍬.
Do you mean ⌈/⍬? The result is based on the definition of reduce / for null elements in the argument; reduce uses the identity element when the operand is the maximum function ⌈, here the biggest negative number defined (for the current ⎕FR), or a special value for , and ⍪, else a DOMAIN ERROR.
See page 162 of the Dyalog APL Language Reference Guide for the formal definition, which isn't easy to parse.
Cheers.
For amusement:
Do you mean ⌈/⍬? The result is based on the definition of reduce / for null elements in the argument; reduce uses the identity element when the operand is the maximum function ⌈, here the biggest negative number defined (for the current ⎕FR), or a special value for , and ⍪, else a DOMAIN ERROR.
See page 162 of the Dyalog APL Language Reference Guide for the formal definition, which isn't easy to parse.
Cheers.
For amusement:
⌈/2 3 0⍴0
¯1.797693135E308 ¯1.797693135E308 ¯1.797693135E308
¯1.797693135E308 ¯1.797693135E308 ¯1.797693135E308
- petermsiegel
- Posts: 142
- Joined: Thu Nov 11, 2010 11:04 pm
Re: Qestion about round up
Thank you for explanation. I wasn't aware of this.
BR Florian
BR Florian
- bilekflo
- Posts: 28
- Joined: Wed Mar 12, 2014 10:07 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group