Post Reply 
(38G) COMB Replacement to Avoid COMB a<b Error
11-19-2017, 08:18 AM
Post: #1
(38G) COMB Replacement to Avoid COMB a<b Error
The programme takes an complex number

(a,b)

from Home screen Ans & returns the result of

COMB(a,b)

to Ans, the answer differing from the result of in-built function COMB for the case where

a<b

the function COMB resulting in an error, while this programme returns

0.

Motivation: From the 49G on the function COMB returns 0 for a<b, a result I find more comfortable than error.

Code:
COMB0

IFERR
COMB(RE(Ans),IM(Ans)):
THEN
0:
END:
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)