Skip to content

why (9 o. _.j0) sentence throws domain error? #189

Open
@jip

Description

@jip
   JVERSION
Engine: j9.6.0-beta4/j64avx2/linux
Build: commercial/2024-03-19T00:51:21/clang-11-0-0/SLEEF=1
Library: 9.6.5
Qt IDE: 2.5.3/5.12.8(5.15.8)
OS Ver: openSUSE Leap 15.5 5.14.21-150500.55.52-default
Platform: Linux 64
Installer: j9.6 install
InstallPath: /home/user/j9.6.0-beta4_j64avx2
Contact: www.jsoftware.com

   9 o. _.  NB. [1]
_.
   +. _.j0  NB. [2]
_. 0

   NB. question # 1
   9 o. _.j0  NB. [3]
|domain error, executing dyad o.
|   9     o._.
   11 o. 0j_.  NB. [4]
|domain error, executing dyad o.
|   11     o.0j_.

   NB. question # 2
   9 o. 0j_.  NB. [5]
0
   11 o. _.j0  NB. [6]
0

Questions:

  1. Why "domain error" in [3,4]? If a primitive judges it results to NaN from input not containing NaN then "NaN error" should be thrown. But this is not the case, it's just extracting NaN from compound already containing NaN.
  2. If computations must propagate NaN, then shouldn't [5,6] result to NaN?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions