HISE Logo Forum
    • Categories
    • Register
    • Login

    SNEX pow with float/double exponent returns NaN

    Scheduled Pinned Locked Moved Bug Reports
    4 Posts 2 Posters 200 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk
      last edited by ustk

      @Christoph-Hart Strange, the pow function seems to be accepting decimal exponents and is well overloaded, but still it returns a NaN while in Hise script it works as expected...

      Can't help pressing F5 in the forum...

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @ustk
        last edited by

        @ustk Got my answer, my base is negative which is apparently not possible... But it works when tracing in Desmos Graph

        Link Preview Image
        std::pow, std::powf, std::powl - cppreference.com

        favicon

        (en.cppreference.com)

        Can't help pressing F5 in the forum...

        Christoph HartC 1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @ustk
          last edited by

          If base is finite and negative and exp is finite and non-integer, a domain error occurs and a range error may occur.

          And a range error has occured. :)

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @Christoph Hart
            last edited by

            @Christoph-Hart I hate when mathematics don't bend to my will...

            Can't help pressing F5 in the forum...

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            30

            Online

            1.8k

            Users

            12.0k

            Topics

            104.5k

            Posts