hidden/ undocumented weird value() function.
|
04-04-2021, 01:41 AM
Post: #1
|
|||
|
|||
hidden/ undocumented weird value() function.
cas:
apply((x)->((x==1)) OR ((x==2)),[[1,2,3],[1,2,3]],'matrix') weird turns "true" to 1 and "false" to 0 value(apply((x)->((x==1)) OR ((x==2)),[[1,2,3],[1,2,3]],'matrix')) |
|||
04-04-2021, 10:43 AM
Post: #2
|
|||
|
|||
RE: hidden/ undocumented weird value() function.
What is the value function supposed to do? On my simulator this:
value(apply((x)->((x==1)) OR ((x==2)),[[1,2,3],[1,2,3]],'matrix')) returns: value([[1,1,0],[1,1,0]]) while this: anythinghere(apply((x)->((x==1)) OR ((x==2)),[[1,2,3],[1,2,3]],'matrix')) returns: anythinghere([[1,1,0],[1,1,0]]) This is while using the default cas settings. -road |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)