Equation validator (==) problem
|
05-08-2020, 03:42 PM
Post: #4
|
|||
|
|||
RE: Equation validator (==) problem
Hi, DrD
XCas (1.5.0-63 win32) support chained comparison , but not fully short circuiting. XCas> f(x) := {print(x);x} XCas> f(1) < f(2) < f(3) < f(-1) < f(-2) < f(-3) x:1 x:2 x:2 x:3 x:-1 x:-3 → false Python 2.6: >>> def f(x): print x; return x ... >>> f(1) < f(2) < f(3) < f(-1) < f(-2) < f(-3) 1 2 3 -1 False |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Equation validator (==) problem - superludvig - 05-08-2020, 12:34 PM
RE: Equation validator (==) problem - Albert Chan - 05-08-2020, 12:55 PM
RE: Equation validator (==) problem - DrD - 05-08-2020, 02:29 PM
RE: Equation validator (==) problem - Albert Chan - 05-08-2020 03:42 PM
|
User(s) browsing this thread: 1 Guest(s)