[bug #68096] exp with quaternion=0 get NaN

kuo-wei <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

URL:
  <https://savannah.gnu.org/bugs/?68096>

                 Summary: exp with quaternion=0 get NaN
                   Group: GNU Octave
               Submitter: muslim
               Submitted: Fri 27 Feb 2026 05:21:30 AM UTC
                Category: Octave Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked
                 Release: 10.3.0
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 27 Feb 2026 05:21:30 AM UTC By: kuo-wei <muslim>
When using quaternion-2.4.2, the following code will return 1 + NaNi + NaNj +
NaNk. However, the correct result should be 1 + 0i + 0j + 0k.

pkg load quaternion
exp(qi*0) ## exp(qi-qi) has the same result.









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68096>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaaEp3gAKCRCqLAuaBUf3
Tt3UAP0V+TSBcaPRcG1GsK21Dqo7mbX0dZDXCI7IrMiujYCaYgD/R2UxSYVmmpvB
8feCiGIr27q10rkKy7pt+rzG1OWrHw4=
=g4V6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.