bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Invalid value in binomial


From: Juergen Sauermann
Subject: Re: [Bug-apl] Invalid value in binomial
Date: Sat, 17 Dec 2016 16:14:49 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi Kacper,

thanks, fixed in SVN 824.

/// Jürgen


On 12/17/2016 12:33 AM, Kacper Gutowski wrote:
Thanks.

I noticed one more thing, with numbers of huge magnitude of either
sign or with infinities, it fails an assertion rather than reporting
domain error.


      1!⋆99

==============================================================================
Assertion failed: N >= K
in Function:      do_binomial
in file:          NumericCell.cc:1111

Call stack:

----------------------------------------
-- Stack trace at NumericCell.cc:1111
----------------------------------------
0x7fd99ed572b1 __libc_start_main
0x560995a4d7f5  main
0x560995bade2d   Workspace::immediate_execution(bool)
0x560995a99af5    Command::process_line()
0x560995a99c1f     Command::do_APL_expression(UCS_string&)
0x560995aa53dd      Executable::execute_body() const
0x560995b4eda4       StateIndicator::run()
0x560995ae416b        Prefix::reduce_statements()
0x560995addbcb         Prefix::reduce_A_F_B_()
0x560995b4900f          Bif_F12_BINOM::eval_AB(Value_P, Value_P)
0x560995b431c9           ScalarFunction::eval_scalar_AB(Value_P, Value_P, ErrorCode (Cell::*)(Cell*, Cell const*) const)
0x560995ad721f            NumericCell::bif_binomial(Cell*, Cell const*) const
0x560995ad6d48             NumericCell::do_binomial(Cell*, long, long, bool)
0x560995a6092d              do_Assert(char const*, char const*, char const*, int)
========================================

SI stack:

Depth:      0
Exec:       0x560996f28620
Safe exec:  0
Pmode:      ◊  1!⋆99
PC:         4 (6) ENDL
Stat:       1!⋆99
err_code:   0x0


==============================================================================



-k



reply via email to

[Prev in Thread] Current Thread [Next in Thread]